浏览代码

1.由于域名改动,将 daohe 改为 dh,将 login.vue 组件的 '道合' 改为 '青岛道合'

nzf 3 年之前
父节点
当前提交
a8d7074363
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      public/index.html
  2. 2 2
      src/views/login.vue

+ 1 - 1
public/index.html

@@ -8,7 +8,7 @@
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
     <script>
-      if (document.domain.includes('wms') || document.domain.includes('daohe')) {
+      if (document.domain.includes('wms') || document.domain.includes('dh')) {
         let Link = document.getElementsByTagName('link')[0]
         Link.href = `<%= BASE_URL %>favicon3.ico`
       }

+ 2 - 2
src/views/login.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="login">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
-      <h3 class="title">{{ test? '道合': '智慧云仓平台' }}</h3>
+      <h3 class="title">{{ test? '青岛道合': '智慧云仓平台' }}</h3>
 
       <el-form-item prop="username">
         <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
@@ -110,7 +110,7 @@ export default {
     this.getCode();
     this.getCookie();
     const host = document.domain;
-    this.test = host.includes('wms') || host.includes('daohe');
+    this.test = host.includes('wms') || host.includes('dh');
     Cookies.set('test', this.test? 0: 1);
   },
   methods: {