|
@@ -48,12 +48,14 @@ export const useAppStore = defineStore('app-store', {
|
|
|
* 重载页面
|
|
|
* @param duration - 重载的延迟时间(ms)
|
|
|
*/
|
|
|
- async reloadPage(duration = 0) {
|
|
|
+ async reloadPage(duration = 100) {
|
|
|
this.reloadFlag = false;
|
|
|
await nextTick();
|
|
|
if (duration) {
|
|
|
setTimeout(() => {
|
|
|
+ console.log('b', this.reloadFlag);
|
|
|
this.reloadFlag = true;
|
|
|
+ console.log('f', this.reloadFlag);
|
|
|
}, duration);
|
|
|
} else {
|
|
|
this.reloadFlag = true;
|