Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix upload button disabled forever issue #150

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/.vitepress/theme/components/Analyzer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,6 @@ function showAnalysisResult(status, msg, result_url, status_msg) {
analysisShowResult.value = true

// 消息更改
isBtnDisabled.value = false
btnMsg.value = "重新上传"

// 结束分析
Expand All @@ -845,12 +844,12 @@ function showAnalysisResult(status, msg, result_url, status_msg) {
*/
function finishAnalysis(status, msg) {
analyzing.value = false
isBtnDisabled.value = false
console.log("结束分析:(" + status + ") " + msg)
switch (status) {
case "FetchLogErr":
labelMsg.value = "未读取到支持的日志格式, 请尝试直接上传 .log / .txt 文件"
btnMsg.value = "重新上传"
isBtnDisabled.value = false
umami.track("Analysis Error", {
Status: "Unsupport_Log_File_Ext",
ErrMsg: msg,
Expand All @@ -859,7 +858,6 @@ function finishAnalysis(status, msg) {
case "ReadLogErr":
labelMsg.value = "Log 文件读取错误"
btnMsg.value = "重新上传"
isBtnDisabled.value = false
umami.track("Analysis Error", {
Status: "Cannot_Read_Log_File",
ErrMsg: msg,
Expand All @@ -868,7 +866,6 @@ function finishAnalysis(status, msg) {
case "UnzipErr":
labelMsg.value = "日志文件解压错误"
btnMsg.value = "重新上传"
isBtnDisabled.value = false
umami.track("Analysis Error", {
Status: "Cannot_Unzip_Log_File",
ErrMsg: msg,
Expand Down