xdd hai 3 meses
pai
achega
0b61433106
Modificáronse 6 ficheiros con 32 adicións e 12 borrados
  1. 20 0
      deploy.sh
  2. 1 1
      package.json
  3. 2 2
      src/layout/components/Sidebar/Logo.vue
  4. 4 4
      src/settings.js
  5. 3 3
      src/views/login.vue
  6. 2 2
      vue.config.js

+ 20 - 0
deploy.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# 源目录 (本地)
+local_dir="./dist"
+
+# 目标目录 (远程)
+remote_user="root"
+remote_host="116.204.43.56"
+remote_dir="/var/www/frontend/company"
+
+# 使用 scp 递归复制 dist 目录下的所有内容
+scp -r "$local_dir"/* "$remote_user@$remote_host:$remote_dir"
+
+if [ $? -ne 0 ]; then
+  echo "文件传输失败。"
+  exit 1
+fi
+
+echo "文件传输成功。"
+exit 0

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "fs",
   "version": "1.1.0",
-  "description": "御君方管理平台",
+  "description": "仁康管理平台",
   "author": "FS",
   "license": "MIT",
   "scripts": {

+ 2 - 2
src/layout/components/Sidebar/Logo.vue

@@ -6,7 +6,7 @@
         <h1 v-else class="sidebar-title">{{ title }} </h1>
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/">
-        
+
         <h1 class="sidebar-title">{{ title }} </h1>
       </router-link>
     </transition>
@@ -26,7 +26,7 @@ export default {
   },
   data() {
     return {
-      title: '御君方管理平台',
+      title: '仁康管理平台',
       logo: logoImg
     }
   }

+ 4 - 4
src/settings.js

@@ -1,19 +1,19 @@
 module.exports = {
-  title: '御君方管理平台',
+  title: '仁康管理平台',
+
 
- 
 
   /**
    * 是否系统布局配置
    */
   showSettings: false,
 
-  
+
   /**
    * 是否显示顶部导航
    */
    topNav: true,
- 
+
 
   /**
    * 是否显示 tagsView

+ 3 - 3
src/views/login.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="login" id="loginBox">
     <div class="login-con">
-        <div class="title">御君方管理平台</div>
+        <div class="title">仁康管理平台</div>
       <el-form   ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
         <el-form-item prop="username">
           <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
@@ -95,14 +95,14 @@ export default {
     }
   },
   mounted () {
-    
+
   },
   created() {
     this.getCode();
     this.getCookie();
   },
   methods: {
-       
+
     getCode() {
       getCodeImg().then(res => {
         this.codeUrl = "data:image/gif;base64," + res.img;

+ 2 - 2
vue.config.js

@@ -6,14 +6,14 @@ const defaultSettings = require('./src/settings.js')
 const CompressionWebpackPlugin = require('compression-webpack-plugin')
 // 定义压缩文件类型 压缩JS大小
 const productionGzipExtensions = ['js', 'css']
- 
+
 
 
 function resolve(dir) {
   return path.join(__dirname, dir)
 }
 
-const name = defaultSettings.title || '御君方管理平台' // 标题
+const name = defaultSettings.title || '仁康管理平台' // 标题
 
 const port = process.env.port || process.env.npm_config_port || 80 // 端口