mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 12:50:48 +00:00
no message
This commit is contained in:
parent
ad46fd1aae
commit
17dc434350
@ -22,7 +22,7 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
curPath: this.$route.path,
|
||||
routePath: this.$route.path,
|
||||
transitionName: null,
|
||||
}
|
||||
},
|
||||
@ -63,7 +63,7 @@ export default {
|
||||
|
||||
watch: {
|
||||
'$route'(To, From) {
|
||||
this.curPath = To.path;
|
||||
this.routePath = To.path;
|
||||
if (this.transitionName === null) {
|
||||
this.transitionName = 'app-slide-no';
|
||||
return;
|
||||
@ -74,7 +74,7 @@ export default {
|
||||
this.slideType(To, From);
|
||||
},
|
||||
|
||||
curPath: {
|
||||
routePath: {
|
||||
handler(path) {
|
||||
if (this.userId > 0) {
|
||||
path = path.replace(/^\/manage\/file\/\d+\/(\d+)$/, "/single/file/$1")
|
||||
@ -83,6 +83,13 @@ export default {
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
|
||||
userId: {
|
||||
handler() {
|
||||
this.$store.dispatch("websocketConnection")
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
@ -384,7 +384,7 @@ export default {
|
||||
return {
|
||||
loadIng: 0,
|
||||
|
||||
curPath: this.$route.path,
|
||||
routePath: this.$route.path,
|
||||
mateName: /macintosh|mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl',
|
||||
|
||||
addShow: false,
|
||||
@ -614,7 +614,7 @@ export default {
|
||||
|
||||
watch: {
|
||||
'$route' (route) {
|
||||
this.curPath = route.path;
|
||||
this.routePath = route.path;
|
||||
this.chackPass();
|
||||
},
|
||||
|
||||
@ -672,13 +672,6 @@ export default {
|
||||
immediate: true
|
||||
},
|
||||
|
||||
userId: {
|
||||
handler() {
|
||||
this.$store.dispatch("websocketConnection")
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
|
||||
wsMsg: {
|
||||
handler(info) {
|
||||
const {type, action} = info;
|
||||
@ -782,7 +775,7 @@ export default {
|
||||
|
||||
classNameRoute(path) {
|
||||
return {
|
||||
"active": $A.leftExists(this.curPath, '/manage/' + path),
|
||||
"active": $A.leftExists(this.routePath, '/manage/' + path),
|
||||
};
|
||||
},
|
||||
|
||||
@ -790,7 +783,7 @@ export default {
|
||||
let path = 'project/' + item.id;
|
||||
let openMenu = this.openMenu[item.id];
|
||||
return {
|
||||
"active": $A.leftExists(this.curPath, '/manage/' + path),
|
||||
"active": $A.leftExists(this.routePath, '/manage/' + path),
|
||||
"open-menu": openMenu === true,
|
||||
"operate": item.id == this.topOperateItem.id && this.topOperateVisible
|
||||
};
|
||||
@ -881,7 +874,7 @@ export default {
|
||||
if (!this.natificationReady) {
|
||||
return;
|
||||
}
|
||||
if (!this.natificationHidden && this.curPath == "/manage/messenger" && this.dialogOpenId == data.dialog_id) {
|
||||
if (!this.natificationHidden && this.routePath == "/manage/messenger" && this.dialogOpenId == data.dialog_id) {
|
||||
return;
|
||||
}
|
||||
//
|
||||
|
||||
@ -126,7 +126,6 @@ export default {
|
||||
return true
|
||||
}
|
||||
}
|
||||
this.$store.dispatch("websocketConnection")
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ import {Store} from "le5le-store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
curPath: this.$route.path,
|
||||
routePath: this.$route.path,
|
||||
show768Menu: true,
|
||||
|
||||
version: window.systemInfo.version
|
||||
@ -72,10 +72,10 @@ export default {
|
||||
},
|
||||
|
||||
titleNameRoute() {
|
||||
const {curPath, menu} = this;
|
||||
const {routePath, menu} = this;
|
||||
let name = '';
|
||||
menu.some((item) => {
|
||||
if ($A.leftExists(curPath, '/manage/setting/' + item.path)) {
|
||||
if ($A.leftExists(routePath, '/manage/setting/' + item.path)) {
|
||||
name = item.name;
|
||||
return true;
|
||||
}
|
||||
@ -85,7 +85,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
'$route' (route) {
|
||||
this.curPath = route.path;
|
||||
this.routePath = route.path;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -100,7 +100,7 @@ export default {
|
||||
|
||||
classNameRoute(path, divided) {
|
||||
return {
|
||||
"active": $A.leftExists(this.curPath, '/manage/setting/' + path),
|
||||
"active": $A.leftExists(this.routePath, '/manage/setting/' + path),
|
||||
"divided": !!divided
|
||||
};
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user