fix: cardColorClass/jrscCardColorClass 需声明在 methods 中才可在模板使用
Vue 2 中 import 的函数不会自动暴露给模板,需要在 methods 选项中注册。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
27b5776ee6
commit
0df6bf575b
@ -479,6 +479,7 @@ export default {
|
|||||||
isActiveTab(path) {
|
isActiveTab(path) {
|
||||||
return this.$route.path === path;
|
return this.$route.path === path;
|
||||||
},
|
},
|
||||||
|
cardColorClass,
|
||||||
goToTab({path, disable, url}) {
|
goToTab({path, disable, url}) {
|
||||||
if (url) {
|
if (url) {
|
||||||
window.open(url, '_blank', 'noopener,noreferrer');
|
window.open(url, '_blank', 'noopener,noreferrer');
|
||||||
|
|||||||
@ -630,6 +630,7 @@ export default {
|
|||||||
isActiveTab(path) {
|
isActiveTab(path) {
|
||||||
return this.$route.path === path;
|
return this.$route.path === path;
|
||||||
},
|
},
|
||||||
|
jrscCardColorClass,
|
||||||
goToTab(path) {
|
goToTab(path) {
|
||||||
this.$router.push(path);
|
this.$router.push(path);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -412,6 +412,7 @@ export default {
|
|||||||
isActiveTab(path) {
|
isActiveTab(path) {
|
||||||
return this.$route.path === path;
|
return this.$route.path === path;
|
||||||
},
|
},
|
||||||
|
cardColorClass,
|
||||||
goToTab({ path, disable, url }) {
|
goToTab({ path, disable, url }) {
|
||||||
if (url) {
|
if (url) {
|
||||||
window.open(url, '_blank', 'noopener,noreferrer');
|
window.open(url, '_blank', 'noopener,noreferrer');
|
||||||
|
|||||||
@ -458,6 +458,7 @@ export default {
|
|||||||
isActiveTab(path) {
|
isActiveTab(path) {
|
||||||
return this.$route.path === path;
|
return this.$route.path === path;
|
||||||
},
|
},
|
||||||
|
cardColorClass,
|
||||||
goToTab({path, disable, url}) {
|
goToTab({path, disable, url}) {
|
||||||
if (url) {
|
if (url) {
|
||||||
window.open(url, '_blank', 'noopener,noreferrer');
|
window.open(url, '_blank', 'noopener,noreferrer');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user