| | |
| | | name: 'login' |
| | | }) |
| | | } |
| | | if (user.Msg.indexOf('系统无默认项目') > -1 && ['newsFlash_tool', 'originalText', 'basicAttributes_tool', 'fundMonitoring', 'editFundMonitoring', 'paymentMonitoring', 'flowAnalysis', 'flowAnalysisTab3', 'flowAnalysisTab2', 'checkGQJGT', 'offSiteCheckQYTP'].indexOf(to.name) == -1) { |
| | | switch (user.ShowType) { |
| | | case 'tips_info': |
| | | Message.info(user.Msg) |
| | | break |
| | | case 'tips_success': |
| | | Message.success(user.Msg) |
| | | break |
| | | case 'tips_warning': |
| | | Message.warning(user.Msg) |
| | | break |
| | | case 'tips_error': |
| | | Message.error(user.Msg) |
| | | break |
| | | case 'modal_info': |
| | | Modal.info({ |
| | | title: '消息', |
| | | content: user.Msg |
| | | }) |
| | | break |
| | | case 'modal_success': |
| | | Modal.success({ |
| | | title: '成功', |
| | | content: user.Msg |
| | | }) |
| | | break |
| | | case 'modal_warning': |
| | | Modal.warning({ |
| | | title: '警告', |
| | | content: user.Msg |
| | | }) |
| | | break |
| | | case 'modal_error': |
| | | Modal.error({ |
| | | title: '错误', |
| | | content: user.Msg |
| | | }) |
| | | break |
| | | } |
| | | } |
| | | //取消"系统无默认项目,请选择已有项目或创建新项目!"弹窗 |
| | | // if (user.Msg.indexOf('系统无默认项目') > -1 && ['newsFlash_tool', 'originalText', 'basicAttributes_tool', 'fundMonitoring', 'editFundMonitoring', 'paymentMonitoring', 'flowAnalysis', 'flowAnalysisTab3', 'flowAnalysisTab2', 'checkGQJGT', 'offSiteCheckQYTP'].indexOf(to.name) == -1) { |
| | | // switch (user.ShowType) { |
| | | // case 'tips_info': |
| | | // Message.info(user.Msg) |
| | | // break |
| | | // case 'tips_success': |
| | | // Message.success(user.Msg) |
| | | // break |
| | | // case 'tips_warning': |
| | | // Message.warning(user.Msg) |
| | | // break |
| | | // case 'tips_error': |
| | | // Message.error(user.Msg) |
| | | // break |
| | | // case 'modal_info': |
| | | // Modal.info({ |
| | | // title: '消息', |
| | | // content: user.Msg |
| | | // }) |
| | | // break |
| | | // case 'modal_success': |
| | | // Modal.success({ |
| | | // title: '成功', |
| | | // content: user.Msg |
| | | // }) |
| | | // break |
| | | // case 'modal_warning': |
| | | // Modal.warning({ |
| | | // title: '警告', |
| | | // content: user.Msg |
| | | // }) |
| | | // break |
| | | // case 'modal_error': |
| | | // Modal.error({ |
| | | // title: '错误', |
| | | // content: user.Msg |
| | | // }) |
| | | // break |
| | | // } |
| | | // } |
| | | }).catch(() => { |
| | | setToken('') |
| | | next({ |