fix: cardColorClass/jrscCardColorClass 需声明在 methods 中才可在模板使用

Vue 2 中 import 的函数不会自动暴露给模板,需要在 methods 选项中注册。

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liulujian 2026-07-04 21:43:29 +08:00
parent 27b5776ee6
commit 0df6bf575b
4 changed files with 4 additions and 0 deletions

View File

@ -479,6 +479,7 @@ export default {
isActiveTab(path) {
return this.$route.path === path;
},
cardColorClass,
goToTab({path, disable, url}) {
if (url) {
window.open(url, '_blank', 'noopener,noreferrer');

View File

@ -630,6 +630,7 @@ export default {
isActiveTab(path) {
return this.$route.path === path;
},
jrscCardColorClass,
goToTab(path) {
this.$router.push(path);
},

View File

@ -412,6 +412,7 @@ export default {
isActiveTab(path) {
return this.$route.path === path;
},
cardColorClass,
goToTab({ path, disable, url }) {
if (url) {
window.open(url, '_blank', 'noopener,noreferrer');

View File

@ -458,6 +458,7 @@ export default {
isActiveTab(path) {
return this.$route.path === path;
},
cardColorClass,
goToTab({path, disable, url}) {
if (url) {
window.open(url, '_blank', 'noopener,noreferrer');