角色列表添加

This commit is contained in:
仲么了
2024-01-19 14:08:07 +08:00
parent 343bda8c70
commit 9b75f5b38c
19 changed files with 515 additions and 378 deletions

View File

@@ -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