提交 7a717be4 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 65fb540e
...@@ -51,7 +51,11 @@ export default { ...@@ -51,7 +51,11 @@ export default {
}, },
methods: { methods: {
goPage(path) { goPage(path) {
if (this.user.is_student) { if (!this.user) {
this.$router.push({ path: path })
return false
}
if (this.user.has_long) {
this.$router.push({ path: path }) this.$router.push({ path: path })
} else { } else {
if (path === '/shms/certs' || path === '/shms') { if (path === '/shms/certs' || path === '/shms') {
...@@ -69,7 +73,9 @@ export default { ...@@ -69,7 +73,9 @@ export default {
window.location.href = webConf.others.loginUrl window.location.href = webConf.others.loginUrl
}, },
loginOut() { loginOut() {
this.$store.dispatch('logout').then(() => {}) this.$store.dispatch('logout').then(() => {
this.$router.push({ path: '/shms' })
})
} }
} }
} }
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
}, },
methods: { methods: {
goPage(path) { goPage(path) {
if (this.user.is_student) { if (this.user.has_long) {
this.$router.push({ path: path }) this.$router.push({ path: path })
} else { } else {
if (path === '/shms/certs') { if (path === '/shms/certs') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论