ZaiZai 2 rokov pred
rodič
commit
31411538f6
3 zmenil súbory, kde vykonal 77 pridanie a 3 odobranie
  1. 0 3
      .gitignore
  2. 26 0
      src/config/index.js
  3. 51 0
      vite.config.js

+ 0 - 3
.gitignore

@@ -5,6 +5,3 @@ node_modules
 .DS_Store
 
 dist
-
-src/config/index.js
-vite.config.js

+ 26 - 0
src/config/index.js

@@ -0,0 +1,26 @@
+//主要配置
+export default {
+    title: '档案管理 泓创智诚',
+    desc: '泓创智诚数字工程档案平台',
+    indexTitle: '泓创智诚',
+    key: 'archives',          // 配置主键,目前用于存储
+    clientId: 'archives',     // 客户端id
+    clientSecret: 'archives_secret', // 客户端密钥
+    tenantMode: true,       // 是否开启租户模式
+    tenantId: "000000",     // 管理组租户编号
+    captchaMode: false,     // 是否开启验证码模式
+    switchMode: false,      // 是否开启部门切换模式
+    tokenTime: 3000,
+    tokenHeader: 'Blade-Auth',
+    tokenKey: 'archives-access-token',
+    refreshTokenKey: 'archives-refresh-token',
+    statusWhiteList: [],    //http的status默认放行列表
+    ossUrl: 'https://bladex-test-info.oss-cn-chengdu.aliyuncs.com', //oss地址
+    smsPhone: '',  //测试接受短信验证码的手机号
+    role_id: "1610526744728031234",  //档案总管理角色组ID
+    dev_version: '202303211105',    //开发版本号
+    host: 'http://47.110.251.215:8090',  //测试线上
+    //host: 'http://127.0.0.1:8090',  //打包线上
+    //host: 'http://192.168.0.118', //祝炜
+    //host: 'http://192.168.0.155', //刘依程
+}

+ 51 - 0
vite.config.js

@@ -0,0 +1,51 @@
+import {defineConfig} from 'vite'
+import vue from '@vitejs/plugin-vue'
+import {resolve} from "path";
+import config from "./src/config";
+
+import AutoImport from 'unplugin-auto-import/vite'
+import Components from 'unplugin-vue-components/vite'
+import {ElementPlusResolver} from 'unplugin-vue-components/resolvers'
+
+// https://vitejs.dev/config/
+export default defineConfig({
+    css: {
+        preprocessorOptions: {
+            scss: {
+                additionalData: `@import "./src/styles/app/_var.scss";`
+            }
+        }
+    },
+    resolve: {
+        alias: {
+            '~src': `${resolve(__dirname, './src')}`,
+            '~ass': resolve(__dirname, './src/assets'),
+            '~com': `${resolve(__dirname, './src/components')}`,
+            '~api': resolve(__dirname, './src/api/modules'),
+            '~sto': resolve(__dirname, './src/store/modules'),
+            '~uti': resolve(__dirname, './src/utils'),
+            '~style': resolve(__dirname, './src/styles/page')
+        }
+    },
+    plugins: [
+        vue(),
+        AutoImport({
+            resolvers: [ElementPlusResolver()],
+        }),
+        Components({
+            resolvers: [ElementPlusResolver()],
+        }),
+    ],
+    server: {
+        //port: '3001',
+        //host: '0.0.0.0',
+        proxy: {
+            '/api': {
+                ws: true,
+                changeOrigin: true,
+                target: config.host,
+                rewrite: (path) => path.replace(new RegExp('^/api'), '/'),
+            }
+        }
+    },
+})