Sfoglia il codice sorgente

修改登录、及系统的配置

dongjh 1 anno fa
parent
commit
21ed7f9fce
3 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 1 1
      src/router/index.js
  2. 4 4
      src/views/user/LoginAccount.vue
  3. 1 1
      vue.config.js

+ 1 - 1
src/router/index.js

@@ -5,7 +5,7 @@ import { constantRouterMap } from '@/config/router.config'
 Vue.use(Router)
 
 export default new Router({
-  // mode: 'history',
+  mode: 'history', // 如果发布时,是以应用程序方式发布(类似8082/screen),需要将此段注释掉
   base: process.env.BASE_URL,
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRouterMap

+ 4 - 4
src/views/user/LoginAccount.vue

@@ -2,12 +2,12 @@
     <div>
       <a-form-model ref="form" :model="model" :rules="validatorRules">
         <a-form-model-item required prop="username">
-          <a-input v-model="model.username" size="large" placeholder="请输入帐户名 / admin">
+          <a-input v-model="model.username" size="large" placeholder="请输入帐户名">
             <a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
           </a-input>
         </a-form-model-item>
         <a-form-model-item required prop="password">
-          <a-input v-model="model.password" size="large" type="password" autocomplete="false" placeholder="请输入密码 / 123456">
+          <a-input v-model="model.password" size="large" type="password" autocomplete="false" placeholder="请输入密码">
             <a-icon slot="prefix" type="lock" :style="{ color: 'rgba(0,0,0,.25)' }"/>
           </a-input>
         </a-form-model-item>
@@ -44,8 +44,8 @@
         currdatetime: '',
         loginType: 0,
         model:{
-          username: 'admin',
-          password: '123456',
+          username: '',
+          password: '',
           inputCode: ''
         },
         validatorRules:{

+ 1 - 1
vue.config.js

@@ -25,7 +25,7 @@ module.exports = {
   //   }
   // },
   //打包app时放开该配置
-  publicPath:'/screen',
+  // publicPath:'/screen',
   configureWebpack: config => {
     //生产环境取消 console.log
     if (process.env.NODE_ENV === 'production') {