|
@@ -96,7 +96,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
test: 1,
|
|
|
- flag: 1,
|
|
|
+ flag: -1,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -104,9 +104,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
ConfirmBtn(item) {
|
|
|
- this.flag = item.id
|
|
|
if (item.url && this.$route.path !== item.url) {
|
|
|
+ this.flag = item.id
|
|
|
this.$router.push(item.url)
|
|
|
+ } else {
|
|
|
+ alert("【" + item.name + "】模块开发中...")
|
|
|
}
|
|
|
},
|
|
|
getClass(v) {
|
|
@@ -119,7 +121,9 @@ export default {
|
|
|
watch: {
|
|
|
$route: {
|
|
|
handler(route) {
|
|
|
- this.flag = route.meta.id
|
|
|
+ if(route.meta.id > 0) {
|
|
|
+ this.flag = route.meta.id
|
|
|
+ }
|
|
|
},
|
|
|
immediate: true,
|
|
|
deep: true
|