mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-22 16:34:10 +00:00
优化 goForward
This commit is contained in:
parent
665184bfa2
commit
57df991dd3
@ -201,7 +201,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
openDialog() {
|
openDialog() {
|
||||||
this.goForward({path: '/manage/messenger'});
|
this.goForward({name: 'manage-messenger'});
|
||||||
this.$store.dispatch("openDialogUserid", this.userid).catch(() => {})
|
this.$store.dispatch("openDialogUserid", this.userid).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -394,7 +394,7 @@ export default {
|
|||||||
if (fromUrl) {
|
if (fromUrl) {
|
||||||
window.location.replace(fromUrl);
|
window.location.replace(fromUrl);
|
||||||
} else {
|
} else {
|
||||||
this.goForward({path: '/manage/dashboard'}, true);
|
this.goForward({name: 'manage-dashboard'}, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -691,7 +691,7 @@ export default {
|
|||||||
|
|
||||||
chackPass() {
|
chackPass() {
|
||||||
if (this.userInfo.changepass === 1) {
|
if (this.userInfo.changepass === 1) {
|
||||||
this.goForward({path: '/manage/setting/password'});
|
this.goForward({name: 'manage-setting-password'});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -986,7 +986,7 @@ export default {
|
|||||||
if (!$A.isJson(data)) {
|
if (!$A.isJson(data)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.goForward({path: '/manage/messenger'});
|
this.goForward({name: 'manage-messenger'});
|
||||||
if (data.dialog_id) {
|
if (data.dialog_id) {
|
||||||
$A.setStorage("messenger::dialogId", data.dialog_id)
|
$A.setStorage("messenger::dialogId", data.dialog_id)
|
||||||
this.$store.state.dialogOpenId = data.dialog_id;
|
this.$store.state.dialogOpenId = data.dialog_id;
|
||||||
|
|||||||
@ -1104,7 +1104,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.msgFile = [];
|
this.msgFile = [];
|
||||||
this.msgText = "";
|
this.msgText = "";
|
||||||
this.goForward({path: '/manage/messenger', query: {_: $A.randomString(6)}});
|
this.goForward({name: 'manage-messenger', query: {_: $A.randomString(6)}});
|
||||||
$A.setStorage("messenger::dialogId", data.dialog_id)
|
$A.setStorage("messenger::dialogId", data.dialog_id)
|
||||||
this.$store.state.dialogOpenId = data.dialog_id;
|
this.$store.state.dialogOpenId = data.dialog_id;
|
||||||
this.$store.dispatch('openTask', 0);
|
this.$store.dispatch('openTask', 0);
|
||||||
|
|||||||
@ -67,7 +67,7 @@ export default {
|
|||||||
if (project) {
|
if (project) {
|
||||||
$A.goForward({path: '/manage/project/' + project.id});
|
$A.goForward({path: '/manage/project/' + project.id});
|
||||||
} else {
|
} else {
|
||||||
$A.goForward({path: '/manage/dashboard'});
|
$A.goForward({name: 'manage-dashboard'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -70,7 +70,7 @@ export default {
|
|||||||
this.error = false;
|
this.error = false;
|
||||||
}).catch(({data, msg}) => {
|
}).catch(({data, msg}) => {
|
||||||
if (data.code === 2) {
|
if (data.code === 2) {
|
||||||
this.goForward({path: '/'}, true);
|
this.goForward({name: 'index'}, true);
|
||||||
} else {
|
} else {
|
||||||
this.success = false;
|
this.success = false;
|
||||||
this.error = true;
|
this.error = true;
|
||||||
|
|||||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -618,7 +618,7 @@ export default {
|
|||||||
if (project) {
|
if (project) {
|
||||||
$A.goForward({path: '/manage/project/' + project.id});
|
$A.goForward({path: '/manage/project/' + project.id});
|
||||||
} else {
|
} else {
|
||||||
$A.goForward({path: '/manage/dashboard'});
|
$A.goForward({name: 'manage-dashboard'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user