File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -250,12 +250,25 @@ export default {
250
250
},
251
251
loginSuccess (res ) {
252
252
console .log (res)
253
- this .$router .push ({ name: ' dashboard' }, () => {
253
+ // check res.homePage define, set $router.push name res.homePage
254
+ // Why not enter onComplete
255
+ /*
256
+ this.$router.push({ name: 'analysis' }, () => {
257
+ console.log('onComplete')
254
258
this.$notification.success({
255
259
message: '欢迎',
256
260
description: `${timeFix()},欢迎回来`
257
261
})
258
262
})
263
+ */
264
+ this .$router .push ({ name: ' analysis' })
265
+ // 延迟 1 秒显示欢迎信息
266
+ setTimeout (() => {
267
+ this .$notification .success ({
268
+ message: ' 欢迎' ,
269
+ description: ` ${ timeFix ()} ,欢迎回来`
270
+ })
271
+ }, 1000 )
259
272
this .isLoginError = false
260
273
},
261
274
requestFailed (err ) {
You can’t perform that action at this time.
0 commit comments