提交 478fe759 编写于 作者: fxy060608's avatar fxy060608

fix(app): lang.ts with log

export function initCheckSystemWebview(manifestJson: Record<string, any>) { export function initCheckSystemWebview(manifestJson: Record<string, any>) {
// 检查Android系统webview版本 || 下载X5后启动 // 检查Android系统webview版本 || 下载X5后启动
let plusWebview = manifestJson.plus.webView let plusWebView = manifestJson.plus.webView
if (plusWebview) { if (plusWebView) {
manifestJson.plus['uni-app'].webView = plusWebview manifestJson.plus['uni-app'].webView = plusWebView
delete manifestJson.plus.webView delete manifestJson.plus.webView
} }
if (process.env.NODE_ENV === 'development' && !plusWebView) {
manifestJson.plus['uni-app'].webView = {
minUserAgentVersion: '64.0.3282.116',
}
}
} }
import { hasOwn } from '@vue/shared'
import path from 'path' import path from 'path'
import { EXTNAME_JS_RE, EXTNAME_VUE } from '../../constants' import { EXTNAME_JS_RE, EXTNAME_VUE } from '../../constants'
...@@ -71,7 +72,8 @@ export function isJsFile(id: string) { ...@@ -71,7 +72,8 @@ export function isJsFile(id: string) {
return true return true
} }
const isVueJs = const isVueJs =
EXTNAME_VUE.includes(path.extname(filename)) && (!query.vue || query.setup) EXTNAME_VUE.includes(path.extname(filename)) &&
(!query.vue || query.setup || hasOwn(query, 'lang.ts'))
if (isVueJs) { if (isVueJs) {
return true return true
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册