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