添加创建者权限

This commit is contained in:
qq787203167
2022-06-10 15:33:13 +08:00
parent d09e7e3481
commit 5087161562
4 changed files with 80 additions and 25 deletions
+28 -7
View File
@@ -11,7 +11,7 @@
</a-upload>
<div class="loading-box" v-if="spinning">
<div class="loading-content">
<a-icon class="loading" type="loading" />
<a-icon class="loading" type="loading"/>
<div class="loading-tips">
{{this.$t('Importing')}}...
</div>
@@ -127,6 +127,23 @@
}
this.spinning = false
} else {
let data = info.file.response
const token = Vue.ls.get(ACCESS_TOKEN)
if (token && data.message.includes('Token失效')) {
Modal.error({
title: '登录已过期',
content: '很抱歉,登录已过期,请重新登录',
okText: '重新登录',
mask: false,
onOk: () => {
store.dispatch('Logout').then(() => {
Vue.ls.remove(ACCESS_TOKEN)
window.location.reload()
})
}
})
return
}
let { message } = info.file.response
let { name } = info.file
let content = []
@@ -185,7 +202,7 @@
}
</style>
<style scoped lang="less">
.loading-box{
.loading-box {
position: fixed;
top: 0;
left: 0;
@@ -195,20 +212,24 @@
background-color: rgba(255, 255, 255, 0.9);
border-radius: 8px;
user-select: none;
.loading-content{
.loading-content {
position: absolute;
top: 50%;
left: 50%;
color: #21c9cc;
transform: translate(-50%, -50%);
text-align: center;
.loading{
font-size:28px ;
.loading {
font-size: 28px;
}
.spin-loading{
.spin-loading {
animation: rotating 2s linear infinite;
}
.loading-tips{
.loading-tips {
margin-top: 5px;
font-size: 16px;
color: #21c9cc;