[update] 登录成功后跳转页面修改

This commit is contained in:
lideqin
2024-05-06 10:00:10 +08:00
parent 57c4eb7ca5
commit c50dcd203d
3 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -151,7 +151,8 @@ module.exports = {
departmentalLiaison: '部门联络人', departmentalLiaison: '部门联络人',
deadlineForComments: '征求意见截止日期', deadlineForComments: '征求意见截止日期',
workingGroup: '工作组', workingGroup: '工作组',
deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期晚' deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期晚',
noStandardTextLook: '暂无标准文本可查看'
}, },
// 企标复审流程 // 企标复审流程
esRecheck: { esRecheck: {
+10 -3
View File
@@ -106,9 +106,16 @@ export default {
}, },
loginSuccess () { loginSuccess () {
Toast('登录成功') Toast('登录成功')
this.$router.push({ path: '/' }).catch((res) => { const query = this.$route.query
console.log(res) if (query.redirect) {
}) this.$router.push({ path: query.redirect }).catch((res) => {
console.log(res)
})
} else {
this.$router.push({ path: '/' }).catch((res) => {
console.log(res)
})
}
}, },
// 密码禁止粘贴 // 密码禁止粘贴
handleOperate () { handleOperate () {
@@ -519,6 +519,10 @@ export default {
}, },
// 在线编辑的查看 // 在线编辑的查看
onlineEditView (fileId) { onlineEditView (fileId) {
if (!fileId) {
this.$message(this.$t('enStandardRevision.noStandardTextLook'))
return
}
queryFileInfoByEditId({ id: fileId }).then(res => { queryFileInfoByEditId({ id: fileId }).then(res => {
if (res.success) { if (res.success) {
const file = res.result const file = res.result
@@ -534,6 +538,7 @@ export default {
// 组件内路由拦截 // 组件内路由拦截
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
// 如果不是移动端支持的节点,就跳转NoMobile // 如果不是移动端支持的节点,就跳转NoMobile
console.log(EsRevisionNodes.propertyOfValue('isMobile', to.query.nodeId))
if (!EsRevisionNodes.propertyOfValue('isMobile', to.query.nodeId)) { if (!EsRevisionNodes.propertyOfValue('isMobile', to.query.nodeId)) {
next({ path: '/noMobile' }) next({ path: '/noMobile' })
} }