Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedManZhao committed Apr 12, 2024
1 parent 59211ab commit 5d2b7e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/js/indexMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ document.getElementById("submitButton").addEventListener("click", function () {
jokerBoxPopUp.show("请您输入信息哦!!! ")
return;
}
if (value === undefined) {
if (value === undefined || value.length === 0) {
value = '0';
}
document.cookie = `diskMirror_server_pass=${value}; path=/`;
Expand Down
3 changes: 2 additions & 1 deletion web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ window.onload = function () {
},
(e) => {
progressBar.setProgressByValue(0, 'linear-gradient(to right, rgba(255, 255, 255, 0.5), #8c00ff)')
progressBar.setProgressByValue(124 << 10 << 10, 128 << 10 << 10, 'linear-gradient(to right, rgba(255, 255, 255, 0.5), #8c00ff)')
if ('res' in e) {
if (e['res'].endsWith("不可读!!!")) {
// 这里代表用户是第一次使用 盘镜 所以可能没有目录 但并不代表是发生了错误!!!
Expand Down Expand Up @@ -179,6 +178,8 @@ window.onload = function () {
fsList.setPath(searchParams[searchParams.length - 1]);
}
return;
} else {
progressBar.setProgressByValue(124 << 10 << 10, 128 << 10 << 10, 'linear-gradient(to right, rgba(255, 255, 255, 0.5), #8c00ff)');
}
console.error(e);
new FS_List('fileName', [
Expand Down

0 comments on commit 5d2b7e2

Please sign in to comment.