角色列表添加
This commit is contained in:
@@ -137,20 +137,12 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
|
||||
imageCode: '',
|
||||
verifyCode: 0
|
||||
}).then(res => {
|
||||
// console.log('🚀 ~ file: login.vue:134 ~ gongkey ~ res:', res)
|
||||
let DOMIN = window.location.origin
|
||||
let STATIC_URL = DOMIN + '/api/system-boot/image/toStream?bgImage='
|
||||
localStorage.setItem('STATIC_URL', STATIC_URL)
|
||||
userInfo.setToken(res.data.token_type + ' ' + res.data.access_token, 'auth')
|
||||
userInfo.dataFill(res.data)
|
||||
state.submitLoading = false
|
||||
router.push({
|
||||
path: 'admin/dashboard'
|
||||
path: '/'
|
||||
})
|
||||
})
|
||||
// .catch(err => {
|
||||
// state.submitLoading = false
|
||||
// })
|
||||
// state.submitLoading = false
|
||||
})
|
||||
setTimeout(() => {
|
||||
state.submitLoading = false
|
||||
|
||||
Reference in New Issue
Block a user