Skip to content

Commit

Permalink
[update] modify failed developer tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Diving-Fish committed Aug 23, 2024
1 parent 8781431 commit 4e8be06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion web/src/components/DeveloperToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" @click="openFormDialog">申请新 Token</v-btn>
<v-btn color="primary" @click="openFormDialog()">申请新 Token</v-btn>
</v-card-actions>

<v-dialog
Expand Down Expand Up @@ -175,9 +175,15 @@ export default {
this.isNewToken = false;
this.newToken.oldToken = oldToken.token;
this.newToken.level = oldToken.level;
this.newToken.reason = "";
this.newToken.pic = [];
}
else {
this.isNewToken = true;
this.newToken.level = 1;
this.newToken.oldToken = "";
this.newToken.reason = "";
this.newToken.pic = [];
}
},
async submitForm() {
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/MainPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</v-card>
</v-dialog>
<recovery :visible="true" />
<developer-token />
<developer-token :visible="username !== '未登录'" />
<v-dialog width="1000px" :fullscreen="$vuetify.breakpoint.mobile" v-model="dialogVisible">
<template #activator="{ on, attrs }">
<v-btn class="mt-3 mr-4" v-bind="attrs" v-on="on">导入数据</v-btn>
Expand Down

0 comments on commit 4e8be06

Please sign in to comment.