Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑磊
web-lib
Commits
9ac4e4e3
Commit
9ac4e4e3
authored
May 25, 2026
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加webview打开来源字段
parent
1a610735
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
environment.ts
base/environment.ts
+5
-0
environment.ts
miniapp/environment.ts
+1
-1
No files found.
base/environment.ts
View file @
9ac4e4e3
...
@@ -51,3 +51,8 @@ function normalizeLang(lang: string) {
...
@@ -51,3 +51,8 @@ function normalizeLang(lang: string) {
* 语言标识
* 语言标识
*/
*/
export
const
lang
=
normalizeLang
(
getCookie
(
'lang'
)
||
navigator
.
language
)
export
const
lang
=
normalizeLang
(
getCookie
(
'lang'
)
||
navigator
.
language
)
/**
* webview的打开来源
*/
export
const
open_source
=
getCookie
(
'open_source'
)
||
''
miniapp/environment.ts
View file @
9ac4e4e3
import
{
getCookie
}
from
'../base/cookie'
import
{
getCookie
}
from
'../base/cookie'
export
{
type
DeviceType
,
device
,
in_app
,
lang
}
from
'../base/environment'
export
{
type
DeviceType
,
device
,
in_app
,
lang
,
open_source
}
from
'../base/environment'
/**
/**
* 当前轻应用的appid
* 当前轻应用的appid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment