chore: 清除以前的message

This commit is contained in:
dap 2024-10-07 13:26:36 +08:00
parent eaeb6b2b29
commit 1aa338ba34

View File

@ -171,6 +171,8 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
return await generateAccessible(preferences.app.accessMode, {
...options,
fetchMenuListAsync: async () => {
// 清除以前的message
message.destroy();
message.loading({
content: `${$t('common.loadingMenu')}...`,
duration: 1,