修改加载密钥的变量为单独变量,不与投稿列表搞混
This commit is contained in:
parent
7004b0f115
commit
b7b62096c7
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1 +1 @@
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.2587987c.js"></script><script defer="defer" src="/js/app.97ea4a9b.js"></script><link href="/css/app.91c3e0f8.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.2587987c.js"></script><script defer="defer" src="/js/app.8c7d86cc.js"></script><link href="/css/app.91c3e0f8.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -57,7 +57,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div v-else-if="loading" class="loading-keys">
|
||||
<div v-else-if="loadingKeyList" class="loading-keys">
|
||||
加载中...
|
||||
</div>
|
||||
<div v-else class="empty-keys">
|
||||
@ -184,6 +184,8 @@ export default {
|
||||
totalSubmissions: 0,
|
||||
loading: false,
|
||||
// 密钥管理相关数据
|
||||
// 控制密钥列表加载状态
|
||||
loadingKeyList: false,
|
||||
showKeyManagement: false,
|
||||
showExchangeKey: false,
|
||||
keyList: [],
|
||||
@ -294,7 +296,7 @@ export default {
|
||||
|
||||
// 加载密钥列表
|
||||
async loadKeyList() {
|
||||
this.loading = true;
|
||||
this.loadingKeyList = true;
|
||||
try {
|
||||
const token = Cookies.get('token');
|
||||
if (!token) {
|
||||
@ -325,7 +327,7 @@ export default {
|
||||
console.error('获取密钥列表出错:', error);
|
||||
messageBox.alert(error.message || '获取密钥列表失败,请稍后再试', '错误');
|
||||
} finally {
|
||||
this.loading = false;
|
||||
this.loadingKeyList = false;
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user