Skip to content

Commit 0f327d2

Browse files
committed
fix: loading miss when backup (#537)
1 parent 7b43c20 commit 0f327d2

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
"streetsidesoftware.code-spell-checker",
44
"editorconfig.editorconfig",
55
"foxundermoon.shell-format",
6-
"ms-vscode.vscode-typescript-next",
76
],
87
"unwantedRecommendations": [
98
"esbenp.prettier-vscode",
109
]
11-
}
10+
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
"license": "MIT",
3030
"devDependencies": {
3131
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
32-
"@babel/preset-env": "^7.28.0",
32+
"@babel/preset-env": "^7.28.3",
3333
"@crowdin/crowdin-api-client": "^1.46.0",
34-
"@rsdoctor/rspack-plugin": "^1.2.1",
34+
"@rsdoctor/rspack-plugin": "^1.2.3",
3535
"@rspack/cli": "^1.4.11",
3636
"@rspack/core": "^1.4.11",
3737
"@swc/core": "^1.13.3",
3838
"@swc/jest": "^0.2.39",
3939
"@types/chrome": "0.1.4",
4040
"@types/decompress": "^4.2.7",
4141
"@types/jest": "^30.0.0",
42-
"@types/node": "^24.2.1",
42+
"@types/node": "^24.3.0",
4343
"@types/punycode": "^2.1.4",
4444
"@vue/babel-plugin-jsx": "^1.5.0",
4545
"babel-loader": "^10.0.0",
@@ -53,7 +53,7 @@
5353
"postcss": "^8.5.6",
5454
"postcss-loader": "^8.1.1",
5555
"postcss-rtlcss": "^5.7.1",
56-
"puppeteer": "^24.16.0",
56+
"puppeteer": "^24.17.0",
5757
"sass": "^1.90.0",
5858
"sass-loader": "^16.0.5",
5959
"style-loader": "^4.0.0",
@@ -68,14 +68,14 @@
6868
},
6969
"dependencies": {
7070
"@element-plus/icons-vue": "^2.3.2",
71-
"@vueuse/core": "^13.6.0",
71+
"@vueuse/core": "^13.7.0",
7272
"countup.js": "^2.9.0",
7373
"echarts": "^6.0.0",
7474
"element-plus": "2.10.7",
75-
"js-base64": "^3.7.7",
75+
"js-base64": "^3.7.8",
7676
"punycode": "^2.3.1",
7777
"stream-browserify": "^3.0.0",
78-
"vue": "^3.5.18",
78+
"vue": "^3.5.19",
7979
"vue-router": "^4.5.1"
8080
},
8181
"engines": {

rspack/rspack.common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ const generateOption = ({ outputPath, manifest, mode }: Option) => {
181181
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
182182
__VUE_OPTIONS_API__: false,
183183
__VUE_PROD_DEVTOOLS__: false,
184+
'process.env.VUE_TRUSTED_TYPES': false,
184185
}),
185186
]
186187
const config: Configuration = {

src/pages/hooks/useRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export const useRequest = <P extends any[], T>(getter: (...p: P) => Promise<T> |
5252

5353
const refreshAsync = async (...p: P) => {
5454
loading.value = true
55-
const loadingEl = await findLoadingEl(loadingTarget)
55+
let loadingEl = await findLoadingEl(loadingTarget)
56+
// fallback use document
57+
!loadingEl && loadingText && (loadingEl = document.body)
5658
const loadingInstance = loadingEl ? ElLoadingService({ target: loadingEl, text: loadingText }) : null
5759
try {
5860
param.value = p

0 commit comments

Comments
 (0)