Skip to content

Commit 8926ee9

Browse files
committed
🐛 修复密码文件夹不正确的情况下,也显示出了文件夹 readme 的 bug
1 parent 358c554 commit 8926ee9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/composables/file/useFileData.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export default function useFileData() {
127127
} else {
128128
title.value = storageConfigStore.globalConfig.siteName + ' | 首页';
129129
}
130+
131+
loadFileConfig(param);
130132
}).catch((error) => {
131133
let data = error.response.data;
132134
// 如果需要密码或密码错误进行提示, 并弹出输入密码的框.
@@ -143,10 +145,12 @@ export default function useFileData() {
143145
}
144146

145147
// 加载存储器设置
146-
const loadFileConfig = () => {
148+
const loadFileConfig = (loadFileParam) => {
149+
147150
let param = {
148151
storageKey: storageKey.value,
149-
path: currentPath.value
152+
path: currentPath.value,
153+
password: loadFileParam.password
150154
}
151155
loadStorageConfigReq(param).then((res) => {
152156
storageConfigStore.updateFolderConfig(res.data);

0 commit comments

Comments
 (0)