zhangjie пре 1 година
родитељ
комит
93836f2fde

+ 1 - 3
src/modules/base/components/ResetPwd.vue

@@ -43,7 +43,7 @@
           ></el-input>
         </el-form-item>
       </template>
-      <template v-if="needBindMobile && schoolInfo.phoneLogin">
+      <template v-if="needBindMobile">
         <el-form-item prop="mobileNumber" label="手机号:">
           <el-input
             v-model.trim="modalForm.mobileNumber"
@@ -171,7 +171,6 @@ export default {
           },
         ],
       },
-      schoolInfo: {},
     };
   },
   computed: {
@@ -198,7 +197,6 @@ export default {
     },
     visibleChange() {
       this.initData(this.instance);
-      this.schoolInfo = this.$ls.get("schoolInfo", {});
     },
     cancel() {
       this.modalIsShow = false;

+ 5 - 1
src/modules/login/views/Login.vue

@@ -328,7 +328,11 @@ export default {
       }
     },
     resetCancel() {
-      this.$ls.clear();
+      this.$ls.remove("orgId");
+      this.$ls.remove("schoolId");
+      this.$ls.remove("schoolName");
+      this.$ls.remove("user");
+      this.$ls.remove("token");
     },
     // code valid
     checkField(field) {

+ 3 - 1
src/modules/mark/api.js

@@ -163,5 +163,7 @@ export const scoreReport = (datas) => {
   return $postParam("/api/admin/mark/archive/score/report", datas);
 };
 export const scoreReportExport = (datas) => {
-  return $post("/api/admin/mark/archive/score/report/download", datas);
+  return $post("/api/admin/mark/archive/score/report/download", datas, {
+    responseType: "blob",
+  });
 };