cad08a2d by simon

默认提交

1 parent 73f51faa
......@@ -10,6 +10,7 @@
font-family: Arial;
font-size: 14px;
// 日历
.calendar-wrap {
......
......@@ -18,25 +18,25 @@ export default {
props: {
type: {
type: String,
default() {
default () {
return "nav";
}
},
dataObj: {
type: Object,
default() {
default () {
return {};
}
},
dataList: {
type: Array,
default() {
default () {
return [];
}
},
labelProperty: {
type: String,
default() {
default () {
return "name";
}
}
......@@ -96,6 +96,11 @@ export default {
let path = item && item.path || "";
this.$root.eventBus.$emit(item.path);
if (path) {
console.log("path:", path);
// modify
if (path == "/custom/service?q=m5") {
path = "/clarms"
}
this.$router.push({
path: path
})
......@@ -125,10 +130,14 @@ export default {
if (this.$route.name == "login") {
return;
} else if (this.$route.name == "register" || this.$route.name == "passwordFind") {
this.$router.push({ path: "/login" });
this.$router.push({
path: "/login"
});
} else {
let callback = this.$route.fullPath;
this.$router.push({ path: "/login?callback=" + callback });
this.$router.push({
path: "/login?callback=" + callback
});
}
},
logoutHandler() {
......@@ -152,5 +161,5 @@ export default {
return this.dataList[this.activeIndex][this.labelProperty];
}
},
created() { },
created() {},
};
......
<template>
<div>
<div class="navigate">
......