Commit 84815ac2 by xinla

config.js配置文件目录位置调整等

1 parent 29cdc2bb
import { getToken } from '@/utils/auth'
import { env } from '../env'
import { env } from './env'
// 系统内常量默认配置,只能从外部配置,内部不可修改
const common = {
SYSTEM_NAME: 'LinkWeChat', // 系统简称
SYSTEM_NAME_MOBILE: 'LinkWeChat', // 移动端应用简称
// SYSTEM_NAME_ALL: 'LinkWeChat--全链路私域数字化营销增长解决方案', // 系统全称
SYSTEM_NAME_ALL: 'LinkWeChat -- 全链路私域数字化营销增长解决方案', // 系统全称
COMPANY_NAME: 'LinkWeChat', // 公司简称
COMPANY_NAME_ALL: 'LinkWeChat', // 公司全称
COPYRIGHT:
......@@ -83,6 +83,8 @@ const lwConfig = window.lwConfig || {} // 线上动态配置,用于覆盖系
window.lwConfig = Object.assign(config, env, common, lwConfig, project)
// Object.defineProperties(window.lwConfig, {})
document.title = window.lwConfig.SYSTEM_NAME_ALL
// 主题回显
const [h, s, l] = localStorage.hsl?.split(',')?.map((e) => e.trim()) || []
// const l1 = l?.slice(0, -1) - 5
......
......@@ -25,9 +25,6 @@ const envs = {
_ISCDN: true,
},
}
export const env = Object.assign(
{ SYSTEM_NAME_ALL: 'LinkWeChat -- 全链路私域数字化营销增长解决方案' },
envs[process.env.VUE_APP_ENV],
)
export const env = envs[process.env.VUE_APP_ENV]
// console.log(1, env)
// module.exports = env
......@@ -6,14 +6,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<!-- <title>%VITE_APP_TITLE%</title> -->
<meta name="keywords"
content="LinkWeChat,linkwechat开源SCRM,仟微助手,LinkWeChat私域,企业微信私域,linkwechat私域营销,企微营销,企微私域,私域SCRM,开源企业微信SCRM,全链路私域SCRM,全链路私域数字化营销增长解决方案">
<meta name="description" content="LinkWeChat -- 全链路私域数字化营销增长解决方案">
<link rel="icon" href="/favicon.png">
<link rel="stylesheet" href="/static/css/loading.css">
<script src="/static/config.js"></script>
<title>%VITE_APP_TITLE%</title>
</head>
......
import '@/config.js'
import '../config.js'
import 'normalize.css/normalize.css'
import { createApp, h, defineAsyncComponent } from 'vue'
......
......@@ -27,7 +27,7 @@ export default defineConfig(async ({ command, mode }) => {
// let env = envs[mode]
// console.log(1, import.meta.env) // undefined
// console.log(0, env)
process.env.VITE_APP_TITLE = env.SYSTEM_NAME_ALL
// process.env.VITE_APP_TITLE = env.SYSTEM_NAME_ALL
return {
define: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!