Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 84815ac2
authored
Sep 19, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
config.js配置文件目录位置调整等
1 parent
29cdc2bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
vue3-lw-pc/src/config.js → vue3-lw-pc/config.js
vue3-lw-pc/env.js
vue3-lw-pc/index.html
vue3-lw-pc/src/main.js
vue3-lw-pc/vite.config.js
vue3-lw-pc/
src/
config.js
→
vue3-lw-pc/config.js
View file @
84815ac
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
...
...
vue3-lw-pc/env.js
View file @
84815ac
...
...
@@ -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
vue3-lw-pc/index.html
View file @
84815ac
...
...
@@ -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>
...
...
vue3-lw-pc/src/main.js
View file @
84815ac
import
'
@
/config.js'
import
'
..
/config.js'
import
'normalize.css/normalize.css'
import
{
createApp
,
h
,
defineAsyncComponent
}
from
'vue'
...
...
vue3-lw-pc/vite.config.js
View file @
84815ac
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment