提交 4c1d22a7 authored 作者: CRS's avatar CRS

合并分支 'crs' 到 'master'

new 查看合并请求 !73
...@@ -116,10 +116,14 @@ export default { ...@@ -116,10 +116,14 @@ export default {
}, },
// 跳转到其他页面 // 跳转到其他页面
goOther(path) { goOther(path) {
if (path === 'http://120.55.57.35:8080/assessment/#/Assessment') { if (path === 'http://120.55.57.35:8080/assessment/#/Assessment' && this.$store.getters.getUserData.type !== 1) {
let val = 'http://120.55.57.35:8080/assessment/#/Assessment' + '?username=' + this.$store.getters.getUserData.userName + '&authority=0'; let val = 'http://120.55.57.35:8080/assessment/#/Assessment' + '?username=' + this.$store.getters.getUserData.userName + '&authority=0';
window.open(val); window.open(val);
} else { } else if (path === 'http://120.55.57.35:8080/assessment/#/Assessment' && this.$store.getters.getUserData.type === 1) {
let val = 'http://120.55.57.35:8080/assessment/#/Assessment' + '?username=' + this.$store.getters.getUserData.userName + '&authority=1';
window.open(val);
}
else {
window.open(path); window.open(path);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论