guanchunjie 3 سال پیش
والد
کامیت
765e5be552
5فایلهای تغییر یافته به همراه15 افزوده شده و 13 حذف شده
  1. 2 0
      src/components/Adult/inputModules/DialogueArticleChs/index.vue
  2. 1 1
      src/components/Header.vue
  3. 1 1
      src/store/modules/user.js
  4. 10 10
      src/utils/request.js
  5. 1 1
      vue.config.js

+ 2 - 0
src/components/Adult/inputModules/DialogueArticleChs/index.vue

@@ -425,6 +425,7 @@ export default {
         let data = {
           fileName: file.raw.name,
           speechBase64: base_res[1],
+          language: "ch",
         };
         prepareTranscribe(data).then((res) => {
           _this.$set(_this.curQue, "taskId", res.data.taskId);
@@ -459,6 +460,7 @@ export default {
             taskId: this.curQue.taskId,
             verseList: JSON.stringify(verseList),
             matchType: "chinese",
+            language: "ch",
           };
           getWordTime(data).then((res) => {
             this.curQue.wordTime = res.data.result;

+ 1 - 1
src/components/Header.vue

@@ -250,7 +250,7 @@ export default {
     QuitLogin() {
       window.location.href = "/";
       removeSession("SysList");
-      removeToken();
+      // removeToken();
       this.userShow = false;
       this.userMessage = null;
     },

+ 1 - 1
src/store/modules/user.js

@@ -70,7 +70,7 @@ const actions = {
   // remove token
   resetToken({ commit }) {
     return new Promise(resolve => {
-      removeToken() // must remove  token  first
+      // removeToken() // must remove  token  first
       commit('RESET_STATE')
       resolve()
     })

+ 10 - 10
src/utils/request.js

@@ -62,22 +62,22 @@ service.interceptors.response.use(
       return Promise.reject(new Error(res.message || res.error || 'Error'))
     } else if (res.status === -1) {
       // 登录失效
-      Cookies.remove('session_id')
-      Cookies.remove('user_code')
-      Cookies.remove('user_real_name')
-      Cookies.remove('user_type')
-      removeToken();
+      // Cookies.remove('session_id')
+      // Cookies.remove('user_code')
+      // Cookies.remove('user_real_name')
+      // Cookies.remove('user_type')
+      // removeToken();
       msg = Message({
         message: '登录会话失效,请重新登录',
         type: 'error',
         showClose: true,
         duration: 0
       })
-      if (process.env.NODE_ENV === 'development') {
-        router.push(`/login`)
-      } else {
-        window.location.href = '/';
-      }
+      // if (process.env.NODE_ENV === 'development') {
+      //   router.push(`/login`)
+      // } else {
+      //   window.location.href = '/';
+      // }
       return false
     } else {
       Message.closeAll()

+ 1 - 1
vue.config.js

@@ -42,7 +42,7 @@ module.exports = {
       // change xxx-api/login => mock/login
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://gcls.helxsoft.cn/`,
+        target: `http://gcls.utschool.cn/`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''