Skip to content

Commit

Permalink
Merge pull request #48 from putianyi889/patch-36
Browse files Browse the repository at this point in the history
两个小优化
  • Loading branch information
eee555 authored Jun 11, 2024
2 parents 9a294bb + 66fd569 commit 50669fe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front_end/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const useUserStore = defineStore('user', {
username: "",
realname: "",
is_banned: false,
is_staff: true,
is_staff: false,
country: ""
}, // 真正的用户
// 访问谁的地盘不再具有记忆性。即点“我的地盘”,将永远是“我”的地盘
Expand Down
1 change: 0 additions & 1 deletion front_end/src/views/PlayerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ const post_update_realname = (r: string) => {
}
} else if (response.data.status >= 101) {
console.log(response.data);
realname_edit.value = realname.value;
ElMessage.error({ message: response.data.msg, offset: 68 });
}
Expand Down
2 changes: 1 addition & 1 deletion front_end/src/views/UploadView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ const removeUpload = (i: number) => {
// 均匀延时,降低并发。
function getDelay() {
return new Promise(resolve => {
const delay = k * 200;
const delay = 200;
k++;
setTimeout(() => {
resolve(delay);
Expand Down

0 comments on commit 50669fe

Please sign in to comment.