Browse Source

chore: 改为静态首页&修改应用名称

cfofpp 6 months ago
parent
commit
8dfe5e2552
10 changed files with 282 additions and 198 deletions
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 1 1
      .env.staging
  4. 1 1
      package.json
  5. 64 57
      src/layout/components/Top/index.vue
  6. 18 17
      src/router/index.js
  7. 6 6
      src/views/adminLogin.vue
  8. 103 76
      src/views/login.vue
  9. 86 37
      src/views/register.vue
  10. 1 1
      vue.config.js

+ 1 - 1
.env.development

@@ -1,5 +1,5 @@
 # 页面标题
-VUE_APP_TITLE = 财务资金管控应用
+VUE_APP_TITLE = 配网应用管理平台
 
 # 开发环境配置
 ENV = 'development'

+ 1 - 1
.env.production

@@ -1,5 +1,5 @@
 # 页面标题
-VUE_APP_TITLE = 财务资金管控应用
+VUE_APP_TITLE = 配网应用管理平台
 
 # 生产环境配置
 ENV = 'production'

+ 1 - 1
.env.staging

@@ -1,5 +1,5 @@
 # 页面标题
-VUE_APP_TITLE = 财务资金管控应用
+VUE_APP_TITLE = 配网应用管理平台
 
 NODE_ENV = production
 

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "ruoyi",
   "version": "3.8.6",
-  "description": "财务资金管控应用",
+  "description": "配网应用管理平台",
   "author": "若依",
   "license": "MIT",
   "scripts": {

+ 64 - 57
src/layout/components/Top/index.vue

@@ -1,26 +1,33 @@
 <template>
-  <div class='Top-wrapper'>
-    <div class="top-title"> 财务资金管控应用</div>
+  <div class="Top-wrapper">
+    <div class="top-title">配网应用管理平台</div>
     <div class="profile">
       <div class="right-menu">
-        <template v-if="device!=='mobile'">
+        <template v-if="device !== 'mobile'">
           <search id="header-search" class="right-menu-item" />
           <screenfull id="screenfull" class="right-menu-item hover-effect" />
           <el-tooltip content="布局大小" effect="dark" placement="bottom">
-            <size-select id="size-select" class="right-menu-item hover-effect" />
+            <size-select
+              id="size-select"
+              class="right-menu-item hover-effect"
+            />
           </el-tooltip>
-          <span @click="routePush" >
-          <el-badge :value="value==0?'':value" class="hasWaitTask" >
-            <el-icon class="el-icon-message-solid"  ></el-icon>
-            <div @click="routePush"></div>
-          </el-badge>
+          <span @click="routePush">
+            <el-badge :value="value == 0 ? '' : value" class="hasWaitTask">
+              <el-icon class="el-icon-message-solid"></el-icon>
+              <div @click="routePush"></div>
+            </el-badge>
           </span>
         </template>
 
-        <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click" style="margin-left: 10px">
+        <el-dropdown
+          class="avatar-container right-menu-item hover-effect"
+          trigger="click"
+          style="margin-left: 10px"
+        >
           <div class="avatar-wrapper">
-            <span style="margin-right: 4px;">{{ user.name }}</span>
-            <i style="font-size: 20px;" class="el-icon-caret-bottom" />
+            <span style="margin-right: 4px">{{ user.name }}</span>
+            <i style="font-size: 20px" class="el-icon-caret-bottom" />
           </div>
           <el-dropdown-menu slot="dropdown">
             <router-link to="/user/profile">
@@ -34,86 +41,86 @@
             </el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
-<!--        <span style="font-size: 16px;color: #ffffff">{{this.$store.state.user.orgName}}</span>-->
+        <!--        <span style="font-size: 16px;color: #ffffff">{{this.$store.state.user.orgName}}</span>-->
       </div>
     </div>
   </div>
 </template>
 
 <script>
-import { mapGetters, mapState } from 'vuex'
-import Search from '@/components/HeaderSearch'
-import Screenfull from '@/components/Screenfull'
-import SizeSelect from '@/components/SizeSelect'
+import { mapGetters, mapState } from "vuex";
+import Search from "@/components/HeaderSearch";
+import Screenfull from "@/components/Screenfull";
+import SizeSelect from "@/components/SizeSelect";
 
 export default {
-  name: 'Top',
+  name: "Top",
   components: { Search, Screenfull, SizeSelect },
   data() {
     return {
       title: process.env.VUE_APP_TITLE,
-      value:this.$store.state.user.waitta,
-    }
+      value: this.$store.state.user.waitta,
+    };
   },
   computed: {
-    ...mapGetters([
-      'sidebar',
-      'avatar',
-      'device'
-    ]),
-    ...mapState(['user']),
+    ...mapGetters(["sidebar", "avatar", "device"]),
+    ...mapState(["user"]),
     setting: {
       get() {
-        return this.$store.state.settings.showSettings
+        return this.$store.state.settings.showSettings;
       },
       set(val) {
-        this.$store.dispatch('settings/changeSetting', {
-          key: 'showSettings',
-          value: val
-        })
-      }
+        this.$store.dispatch("settings/changeSetting", {
+          key: "showSettings",
+          value: val,
+        });
+      },
     },
   },
-  watch:{
-    'this.$store.state.user.waitta'(newvalue,oldvalue){
-        this.value=newvalue
-    }
+  watch: {
+    "this.$store.state.user.waitta"(newvalue, oldvalue) {
+      this.value = newvalue;
+    },
   },
   mounted() {
-    console.log(this.$store.state.user,'--------------')
+    console.log(this.$store.state.user, "--------------");
   },
   methods: {
-    routePush(){
-      console.log(this.$router)
+    routePush() {
+      console.log(this.$router);
       this.$router.push({
         path: "/commission/index",
       });
     },
     async logout() {
-      this.$confirm('确定注销并退出系统吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.$store.dispatch('LogOut').then(() => {
-          //启用isc登陆前
-          // location.href = '/index';
-          //启用isc登陆后
-          window.location.replace("http://10.223.57.127:17089/isc_sso/logout?service=http://25.212.177.102:19888?token=isc");
+      this.$confirm("确定注销并退出系统吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          this.$store.dispatch("LogOut").then(() => {
+            //启用isc登陆前
+            // location.href = '/index';
+            //启用isc登陆后
+            window.location.replace(
+              "http://10.223.57.127:17089/isc_sso/logout?service=http://25.212.177.102:19888?token=isc"
+            );
+          });
         })
-      }).catch(() => {});
-    }
+        .catch(() => {});
+    },
   },
-}
+};
 </script>
 
-<style lang='scss' scoped>
-@import '@/assets/styles/variables.scss';
+<style lang="scss" scoped>
+@import "@/assets/styles/variables.scss";
 
 .Top-wrapper {
   width: 100%;
   height: 80px;
-  background-image: url('../../../assets/images/top-bg.png');
+  background-image: url("../../../assets/images/top-bg.png");
   padding: 0 60px;
   display: flex;
   align-items: center;
@@ -139,10 +146,10 @@ export default {
 
         &.hover-effect {
           cursor: pointer;
-          transition: background .3s;
+          transition: background 0.3s;
 
           &:hover {
-            background: rgba(0, 0, 0, .025)
+            background: rgba(0, 0, 0, 0.025);
           }
         }
       }

+ 18 - 17
src/router/index.js

@@ -71,21 +71,21 @@ export const constantRoutes = [
     component: () => import("@/views/error/401"),
     hidden: true,
   },
-  {
-    path: "",
-    component: Layout,
-    hidden: true,
-    redirect: "index",
-    meta: { title: "首页", icon: "dashboard", affix: true },
-    children: [
-      {
-        path: "index",
-        component: () => import("@/views/index"),
-        name: "Index",
-        meta: { title: "首页", icon: "dashboard", affix: true },
-      },
-    ],
-  },
+  // {
+  //   path: "",
+  //   component: Layout,
+  //   hidden: true,
+  //   redirect: "index",
+  //   meta: { title: "首页", icon: "dashboard", affix: true },
+  //   children: [
+  //     {
+  //       path: "index",
+  //       component: () => import("@/views/index"),
+  //       name: "Index",
+  //       meta: { title: "首页", icon: "dashboard", affix: true },
+  //     },
+  //   ],
+  // },
   {
     path: "/user",
     component: Layout,
@@ -117,14 +117,15 @@ export const constantRoutes = [
   {
     path: "/home",
     name: "home",
-    hidden: true,
+    // hidden: true,
+    meta: { title: "首页", icon: "dashboard", affix: true },
     component: Layout,
     children: [
       {
         path: "/home/index",
         component: () => import("@/views/home/index"),
         name: "home",
-        meta: { title: "首页" },
+        meta: { title: "首页", icon: "dashboard", affix: true },
       },
     ],
   },

+ 6 - 6
src/views/adminLogin.vue

@@ -6,7 +6,7 @@
       :rules="loginRules"
       class="login-form"
     >
-      <h3 class="title">财务资金管控应用</h3>
+      <h3 class="title">配网应用管理平台</h3>
       <el-form-item prop="username">
         <el-input
           v-model="loginForm.username"
@@ -129,7 +129,7 @@ export default {
   created() {
     this.getCode();
     this.getCookie();
-    this.setDevLogin()
+    this.setDevLogin();
   },
   methods: {
     getPublicKey() {
@@ -206,11 +206,11 @@ export default {
       });
     },
     setDevLogin() {
-      if (process.env.NODE_ENV === 'development') {
-        this.loginForm.username = 'admin'
-        this.loginForm.password = 'admin123'
+      if (process.env.NODE_ENV === "development") {
+        this.loginForm.username = "admin";
+        this.loginForm.password = "admin123";
       }
-    }
+    },
   },
 };
 </script>

+ 103 - 76
src/views/login.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="login">
-    <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
+    <el-form
+      ref="loginForm"
+      :model="loginForm"
+      :rules="loginRules"
+      class="login-form"
+    >
       <h3 class="title">智能配网应用平台</h3>
       <el-form-item prop="username">
         <el-input
@@ -9,7 +14,11 @@
           auto-complete="off"
           placeholder="账号"
         >
-          <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
+          <svg-icon
+            slot="prefix"
+            icon-class="user"
+            class="el-input__icon input-icon"
+          />
         </el-input>
       </el-form-item>
       <el-form-item prop="password">
@@ -20,7 +29,11 @@
           placeholder="密码"
           @keyup.enter.native="handleLogin"
         >
-          <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
+          <svg-icon
+            slot="prefix"
+            icon-class="password"
+            class="el-input__icon input-icon"
+          />
         </el-input>
       </el-form-item>
       <el-form-item prop="code" v-if="captchaEnabled">
@@ -31,26 +44,36 @@
           style="width: 63%"
           @keyup.enter.native="handleLogin"
         >
-          <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
+          <svg-icon
+            slot="prefix"
+            icon-class="validCode"
+            class="el-input__icon input-icon"
+          />
         </el-input>
         <div class="login-code">
-          <img :src="codeUrl" @click="getCode" class="login-code-img"/>
+          <img :src="codeUrl" @click="getCode" class="login-code-img" />
         </div>
       </el-form-item>
-      <el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox>
-      <el-form-item style="width:100%;">
+      <el-checkbox
+        v-model="loginForm.rememberMe"
+        style="margin: 0px 0px 25px 0px"
+        >记住密码</el-checkbox
+      >
+      <el-form-item style="width: 100%">
         <el-button
           :loading="loading"
           size="medium"
           type="primary"
-          style="width:100%;"
+          style="width: 100%"
           @click.native.prevent="handleLogin"
         >
           <span v-if="!loading">登 录</span>
           <span v-else>登 录 中...</span>
         </el-button>
-        <div style="float: right;" v-if="register">
-          <router-link class="link-type" :to="'/register'">立即注册</router-link>
+        <div style="float: right" v-if="register">
+          <router-link class="link-type" :to="'/register'"
+            >立即注册</router-link
+          >
         </div>
       </el-form-item>
     </el-form>
@@ -62,9 +85,9 @@
 </template>
 
 <script>
-import { getCodeImg ,getPublicKey} from "@/api/login";
+import { getCodeImg, getPublicKey } from "@/api/login";
 import Cookies from "js-cookie";
-import { encrypt, decrypt } from '@/utils/jsencrypt';
+import { encrypt, decrypt } from "@/utils/jsencrypt";
 export default {
   name: "Login",
   data() {
@@ -75,32 +98,32 @@ export default {
         password: "admin123",
         rememberMe: false,
         code: "",
-        uuid: ""
+        uuid: "",
       },
       loginRules: {
         username: [
-          { required: true, trigger: "blur", message: "请输入您的账号" }
+          { required: true, trigger: "blur", message: "请输入您的账号" },
         ],
         password: [
-          { required: true, trigger: "blur", message: "请输入您的密码" }
+          { required: true, trigger: "blur", message: "请输入您的密码" },
         ],
-        code: [{ required: true, trigger: "change", message: "请输入验证码" }]
+        code: [{ required: true, trigger: "change", message: "请输入验证码" }],
       },
       loading: false,
       // 验证码开关
       captchaEnabled: true,
       // 注册开关
       register: false,
-      redirect: undefined
+      redirect: undefined,
     };
   },
   watch: {
     $route: {
-      handler: function(route) {
+      handler: function (route) {
         this.redirect = route.query && route.query.redirect;
       },
-      immediate: true
-    }
+      immediate: true,
+    },
   },
   created() {
     this.getCode();
@@ -108,85 +131,89 @@ export default {
   },
   methods: {
     getCode() {
-      getCodeImg().then(res => {
-		 
-        this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
+      getCodeImg().then((res) => {
+        this.captchaEnabled =
+          res.captchaEnabled === undefined ? true : res.captchaEnabled;
         if (this.captchaEnabled) {
           this.codeUrl = "data:image/gif;base64," + res.img;
-					//alert(this.codeUrl+"122323")
+          //alert(this.codeUrl+"122323")
           this.loginForm.uuid = res.uuid;
         }
       });
     },
-	getPublicKey() {
-	  return new Promise((resolve, reject) => {
-	    getPublicKey()
-	      .then((res) => {
-	        resolve(res);
-	      })
-	      .catch((error) => {
-	        reject(error);
-	      });
-	  });
-	},
+    getPublicKey() {
+      return new Promise((resolve, reject) => {
+        getPublicKey()
+          .then((res) => {
+            resolve(res);
+          })
+          .catch((error) => {
+            reject(error);
+          });
+      });
+    },
     getCookie() {
       const username = Cookies.get("username");
       const password = Cookies.get("password");
-      const rememberMe = Cookies.get('rememberMe')
+      const rememberMe = Cookies.get("rememberMe");
       this.loginForm = {
         username: username === undefined ? this.loginForm.username : username,
-        password: password === undefined ? this.loginForm.password : decrypt(password),
-        rememberMe: rememberMe === undefined ? false : Boolean(rememberMe)
+        password:
+          password === undefined ? this.loginForm.password : decrypt(password),
+        rememberMe: rememberMe === undefined ? false : Boolean(rememberMe),
       };
     },
     handleLogin() {
-      this.$refs.loginForm.validate(valid => {
+      this.$refs.loginForm.validate((valid) => {
         if (valid) {
           this.loading = true;
           if (this.loginForm.rememberMe) {
             Cookies.set("username", this.loginForm.username, { expires: 30 });
-            Cookies.set("password", encrypt(this.loginForm.password), { expires: 30 });
-            Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 });
+            Cookies.set("password", encrypt(this.loginForm.password), {
+              expires: 30,
+            });
+            Cookies.set("rememberMe", this.loginForm.rememberMe, {
+              expires: 30,
+            });
           } else {
             Cookies.remove("username");
             Cookies.remove("password");
-            Cookies.remove('rememberMe');
+            Cookies.remove("rememberMe");
           }
-					Cookies.set("username", this.loginForm.username, { expires: 30 });
-      //     this.$store.dispatch("Login", this.loginForm).then(() => {
-      //       this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
-      //     }).catch(() => {
-      //       this.loading = false;
-      //       if (this.captchaEnabled) {
-      //         this.getCode();
-      //       }
-      //     });
-	  this.getPublicKey().then((res) => {
-	    let publicKey = res.publicKey;
-	    this.loginForm.password = encrypt(
-	      this.loginForm.password,
-	      publicKey
-	    );
-	    this.$store
-	      .dispatch("Login", this.loginForm)
-	      .then(() => {
-	        this.$router
-	          .push({ path: this.redirect || "/" })
-	          .catch((error) => {});
-	      })
-	      .catch(() => {
-	        this.loginForm.password = null;
-	        this.loading = false;
-	        if (this.captchaEnabled) {
-	          this.getCode();
-	        }
-	      });
-	  });
-	  
+          Cookies.set("username", this.loginForm.username, { expires: 30 });
+          //     this.$store.dispatch("Login", this.loginForm).then(() => {
+          //       this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
+          //     }).catch(() => {
+          //       this.loading = false;
+          //       if (this.captchaEnabled) {
+          //         this.getCode();
+          //       }
+          //     });
+          this.getPublicKey().then((res) => {
+            let publicKey = res.publicKey;
+            this.loginForm.password = encrypt(
+              this.loginForm.password,
+              publicKey
+            );
+            this.$store
+              .dispatch("Login", this.loginForm)
+              .then(() => {
+                this.$router
+                  .push({ path: this.redirect || "/home/index" })
+                  .catch((error) => {});
+              })
+              .catch(() => {
+                this.loginForm.password = null;
+                this.loading = false;
+                if (this.captchaEnabled) {
+                  this.getCode();
+                }
+              });
+          });
         }
-       });
-    }
-  }
+      });
+    },
+  },
 };
 </script>
 

+ 86 - 37
src/views/register.vue

@@ -1,10 +1,24 @@
 <template>
   <div class="register">
-    <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
-      <h3 class="title">财务资金管控应用</h3>
+    <el-form
+      ref="registerForm"
+      :model="registerForm"
+      :rules="registerRules"
+      class="register-form"
+    >
+      <h3 class="title">配网应用管理平台</h3>
       <el-form-item prop="username">
-        <el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
-          <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
+        <el-input
+          v-model="registerForm.username"
+          type="text"
+          auto-complete="off"
+          placeholder="账号"
+        >
+          <svg-icon
+            slot="prefix"
+            icon-class="user"
+            class="el-input__icon input-icon"
+          />
         </el-input>
       </el-form-item>
       <el-form-item prop="password">
@@ -15,7 +29,11 @@
           placeholder="密码"
           @keyup.enter.native="handleRegister"
         >
-          <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
+          <svg-icon
+            slot="prefix"
+            icon-class="password"
+            class="el-input__icon input-icon"
+          />
         </el-input>
       </el-form-item>
       <el-form-item prop="confirmPassword">
@@ -26,7 +44,11 @@
           placeholder="确认密码"
           @keyup.enter.native="handleRegister"
         >
-          <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
+          <svg-icon
+            slot="prefix"
+            icon-class="password"
+            class="el-input__icon input-icon"
+          />
         </el-input>
       </el-form-item>
       <el-form-item prop="code" v-if="captchaEnabled">
@@ -37,25 +59,31 @@
           style="width: 63%"
           @keyup.enter.native="handleRegister"
         >
-          <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
+          <svg-icon
+            slot="prefix"
+            icon-class="validCode"
+            class="el-input__icon input-icon"
+          />
         </el-input>
         <div class="register-code">
-          <img :src="codeUrl" @click="getCode" class="register-code-img"/>
+          <img :src="codeUrl" @click="getCode" class="register-code-img" />
         </div>
       </el-form-item>
-      <el-form-item style="width:100%;">
+      <el-form-item style="width: 100%">
         <el-button
           :loading="loading"
           size="medium"
           type="primary"
-          style="width:100%;"
+          style="width: 100%"
           @click.native.prevent="handleRegister"
         >
           <span v-if="!loading">注 册</span>
           <span v-else>注 册 中...</span>
         </el-button>
-        <div style="float: right;">
-          <router-link class="link-type" :to="'/login'">使用已有账户登录</router-link>
+        <div style="float: right">
+          <router-link class="link-type" :to="'/login'"
+            >使用已有账户登录</router-link
+          >
         </div>
       </el-form-item>
     </el-form>
@@ -86,25 +114,35 @@ export default {
         password: "",
         confirmPassword: "",
         code: "",
-        uuid: ""
+        uuid: "",
       },
       registerRules: {
         username: [
           { required: true, trigger: "blur", message: "请输入您的账号" },
-          { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' }
+          {
+            min: 2,
+            max: 20,
+            message: "用户账号长度必须介于 2 和 20 之间",
+            trigger: "blur",
+          },
         ],
         password: [
           { required: true, trigger: "blur", message: "请输入您的密码" },
-          { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' }
+          {
+            min: 5,
+            max: 20,
+            message: "用户密码长度必须介于 5 和 20 之间",
+            trigger: "blur",
+          },
         ],
         confirmPassword: [
           { required: true, trigger: "blur", message: "请再次输入您的密码" },
-          { required: true, validator: equalToPassword, trigger: "blur" }
+          { required: true, validator: equalToPassword, trigger: "blur" },
         ],
-        code: [{ required: true, trigger: "change", message: "请输入验证码" }]
+        code: [{ required: true, trigger: "change", message: "请输入验证码" }],
       },
       loading: false,
-      captchaEnabled: true
+      captchaEnabled: true,
     };
   },
   created() {
@@ -112,8 +150,9 @@ export default {
   },
   methods: {
     getCode() {
-      getCodeImg().then(res => {
-        this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
+      getCodeImg().then((res) => {
+        this.captchaEnabled =
+          res.captchaEnabled === undefined ? true : res.captchaEnabled;
         if (this.captchaEnabled) {
           this.codeUrl = "data:image/gif;base64," + res.img;
           this.registerForm.uuid = res.uuid;
@@ -121,27 +160,37 @@ export default {
       });
     },
     handleRegister() {
-      this.$refs.registerForm.validate(valid => {
+      this.$refs.registerForm.validate((valid) => {
         if (valid) {
           this.loading = true;
-          register(this.registerForm).then(res => {
-            const username = this.registerForm.username;
-            this.$alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", '系统提示', {
-              dangerouslyUseHTMLString: true,
-              type: 'success'
-            }).then(() => {
-              this.$router.push("/login");
-            }).catch(() => {});
-          }).catch(() => {
-            this.loading = false;
-            if (this.captchaEnabled) {
-              this.getCode();
-            }
-          })
+          register(this.registerForm)
+            .then((res) => {
+              const username = this.registerForm.username;
+              this.$alert(
+                "<font color='red'>恭喜你,您的账号 " +
+                  username +
+                  " 注册成功!</font>",
+                "系统提示",
+                {
+                  dangerouslyUseHTMLString: true,
+                  type: "success",
+                }
+              )
+                .then(() => {
+                  this.$router.push("/login");
+                })
+                .catch(() => {});
+            })
+            .catch(() => {
+              this.loading = false;
+              if (this.captchaEnabled) {
+                this.getCode();
+              }
+            });
         }
       });
-    }
-  }
+    },
+  },
 };
 </script>
 

+ 1 - 1
vue.config.js

@@ -7,7 +7,7 @@ function resolve(dir) {
 
 const CompressionPlugin = require("compression-webpack-plugin");
 
-const name = process.env.VUE_APP_TITLE || "财务资金管控应用"; // 网页标题
+const name = process.env.VUE_APP_TITLE || "配网应用管理平台"; // 网页标题
 
 const port = process.env.port || process.env.npm_config_port || 80; // 端口