v3.28.0 【优化】优化 Long、BigInteger、BigDecimal 的 JSON 序列化【优化】个人中心样式【优化】Spin加载

This commit is contained in:
zhuoda
2025-08-24 23:05:00 +08:00
parent 3ceea05ba1
commit 63ef235b95
12 changed files with 87 additions and 164 deletions

View File

@@ -24,7 +24,7 @@
"axios": "1.6.8",
"clipboard": "2.0.11",
"crypto-js": "4.1.1",
"dayjs": "1.10.5",
"dayjs": "1.11.13",
"decimal.js": "10.3.1",
"diff": "5.2.0",
"diff2html": "3.4.47",

View File

@@ -8,6 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { defineStore } from 'pinia';
import { smartSentry } from '/@/lib/smart-sentry.js';
export const useSpinStore = defineStore({
id: 'spin',
@@ -18,13 +19,27 @@ export const useSpinStore = defineStore({
actions: {
hide() {
this.loading = false;
let spins = document.querySelector('.ant-spin-nested-loading');
spins.style.zIndex = 999;
// 安全的DOM操作避免null引用错误
try {
const spins = document.querySelector('.ant-spin-nested-loading');
if (spins) {
spins.style.zIndex = '999';
}
} catch (error) {
smartSentry.captureError('Spin hide操作失败:', error);
}
},
show() {
this.loading = true;
let spins = document.querySelector('.ant-spin-nested-loading');
spins.style.zIndex = 1001;
// 安全的DOM操作避免null引用错误
try {
const spins = document.querySelector('.ant-spin-nested-loading');
if (spins) {
spins.style.zIndex = '1001';
}
} catch (error) {
smartSentry.captureError('Spin hide操作失败:', error);
}
},
},
});

View File

@@ -234,12 +234,21 @@
</script>
<style lang="less" scoped>
.center-container {
height: 100%;
display: flex;
flex-direction: column;
.header-title {
font-size: 20px;
flex-shrink: 0;
}
.center-form-area {
margin-top: 20px;
flex: 1;
overflow-y: auto;
min-height: 0;
.avatar-container {
position: relative;

View File

@@ -54,11 +54,11 @@
</a-col>
<!--更新日志-->
<a-col :span="24">
<ToBeDoneCard />
<ChangelogCard />
</a-col>
<!--待办已办-->
<a-col :span="24">
<ChangelogCard />
<ToBeDoneCard />
</a-col>
</a-row>
</a-col>