zhangshuling пре 1 година
родитељ
комит
d58cc364ff

+ 2 - 2
xzl-ui/.env.development

@@ -1,10 +1,10 @@
 # 页面标题
-VUE_APP_TITLE = 管理系统
+VUE_APP_TITLE = XZL管理系统
 
 # 开发环境配置
 ENV = 'development'
 
-# 管理系统/开发环境
+# XZL管理系统/开发环境
 VUE_APP_BASE_API = '/dev-api'
 
 # 路由懒加载

+ 2 - 2
xzl-ui/.env.production

@@ -1,8 +1,8 @@
 # 页面标题
-VUE_APP_TITLE = 管理系统
+VUE_APP_TITLE = XZL管理系统
 
 # 生产环境配置
 ENV = 'production'
 
-# 管理系统/生产环境
+# XZL管理系统/生产环境
 VUE_APP_BASE_API = '/prod-api'

+ 2 - 2
xzl-ui/.env.staging

@@ -1,10 +1,10 @@
 # 页面标题
-VUE_APP_TITLE = 管理系统
+VUE_APP_TITLE = XZL管理系统
 
 NODE_ENV = production
 
 # 测试环境配置
 ENV = 'staging'
 
-# 管理系统/测试环境
+# XZL管理系统/测试环境
 VUE_APP_BASE_API = '/stage-api'

+ 5 - 5
xzl-ui/package.json

@@ -5,11 +5,11 @@
   "author": "XZL",
   "license": "MIT",
   "scripts": {
-    "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
-    "build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
-    "build:stage": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
-    "preview": "SET NODE_OPTIONS=--openssl-legacy-provider && node build/index.js --preview",
-    "lint": "SET NODE_OPTIONS=--openssl-legacy-provider && eslint --ext .js,.vue src"
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "preview": "node build/index.js --preview",
+    "lint": "eslint --ext .js,.vue src"
   },
   "husky": {
     "hooks": {

+ 0 - 118
xzl-ui/src/views/index.vue

@@ -1,110 +1,5 @@
 <template>
   <div class="app-container home">
-    <el-row :gutter="20">
-      <el-col :sm="24" :lg="24">
-        <blockquote class="text-warning" style="font-size: 14px">
-          测试文本
-        </blockquote>
-
-        <hr />
-      </el-col>
-    </el-row>
-    <el-row :gutter="20">
-      <el-col :sm="24" :lg="12" style="padding-left: 20px">
-        <h2>后台管理框架</h2>
-        <p>
-          测试文本
-        </p>
-        <p>
-          测试文本
-        </p>
-        <p>
-          测试文本
-        </p>
-        <p>
-          测试文本
-        </p>
-      </el-col>
-
-      <el-col :sm="24" :lg="12" style="padding-left: 50px">
-        <el-row>
-          <el-col :span="12">
-            <h2>测试文本</h2>
-          </el-col>
-        </el-row>
-        <el-row>
-          <el-col :span="6">
-            <h4>测试文本</h4>
-            <ul>
-              <li>测试文本</li>
-            </ul>
-          </el-col>
-          <el-col :span="6">
-            <h4>测试文本</h4>
-            <ul>
-              <li>测试文本</li>
-            </ul>
-          </el-col>
-        </el-row>
-      </el-col>
-    </el-row>
-    <el-divider />
-    <el-row :gutter="20">
-      <el-col :xs="24" :sm="24" :md="12" :lg="8">
-        <el-card class="update-log">
-          <div slot="header" class="clearfix">
-            <span>测试文本</span>
-          </div>
-          <div class="body">
-            <p>
-              测试文本
-            </p>
-            <p>
-              <i class="el-icon-user-solid">测试文本</i>
-            </p>
-            <p>
-              <i class="el-icon-chat-dot-round"></i> 测试文本:<a
-                >测试文本</a
-              >
-            </p>
-            <p>
-              <i class="el-icon-money"></i> 测试文本:<a
-                >测试文本</a
-              >
-            </p>
-          </div>
-        </el-card>
-      </el-col>
-      <el-col :xs="24" :sm="24" :md="12" :lg="8">
-        <el-card class="update-log">
-          <div slot="header" class="clearfix">
-            <span>测试文本</span>
-          </div>
-          <el-collapse accordion>
-            <el-collapse-item title="测试文本">
-              <ol>
-                <li>测试文本</li>
-              </ol>
-            </el-collapse-item>
-          </el-collapse>
-        </el-card>
-      </el-col>
-      <el-col :xs="24" :sm="24" :md="12" :lg="8">
-        <el-card class="update-log">
-          <div slot="header" class="clearfix">
-            <span>测试文本</span>
-          </div>
-          <div class="body">
-            <img
-              width="100%"
-            />
-            <span style="display: inline-block; height: 30px; line-height: 30px"
-              >测试文本</span
-            >
-          </div>
-        </el-card>
-      </el-col>
-    </el-row>
   </div>
 </template>
 
@@ -113,7 +8,6 @@ export default {
   name: "Index",
   data() {
     return {
-
     };
   },
   methods: {
@@ -173,18 +67,6 @@ export default {
       font-weight: 700;
     }
   }
-
-  .update-log {
-    ol {
-      display: block;
-      list-style-type: decimal;
-      margin-block-start: 1em;
-      margin-block-end: 1em;
-      margin-inline-start: 0;
-      margin-inline-end: 0;
-      padding-inline-start: 40px;
-    }
-  }
 }
 </style>
 

+ 1 - 1
xzl-ui/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">后台管理系统</h3>
+      <h3 class="title">XZL后台管理系统</h3>
       <el-form-item prop="username">
         <el-input
           v-model="loginForm.username"

+ 1 - 1
xzl-ui/src/views/register.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="register">
     <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
-      <h3 class="title">后台管理系统</h3>
+      <h3 class="title">XZL后台管理系统</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" />

+ 2 - 2
xzl-ui/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 || 'XZL管理系统' // 网页标题
 
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
 
@@ -35,7 +35,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8080`,
+        target: `http://localhost:8084`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''