Commit 9ac4e4e3 authored by 郑磊's avatar 郑磊

增加webview打开来源字段

parent 1a610735
...@@ -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') || ''
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment