提交 c6c6f3bc 编写于 作者: Q qiang

fix: template

上级 e5c4832c
......@@ -2,6 +2,6 @@ import * as webview from './scan-code-webview'
import * as weex from './scan-code-weex'
export function scanCode (...array) {
const api = __uniConfig.nvueCompiler === 'uni-app' ? weex : webview
const api = __uniConfig.nvueCompiler !== 'weex' ? weex : webview
return api.scanCode(...array)
}
......@@ -2,6 +2,6 @@ import * as webview from './choose-location-webview'
import * as weex from './choose-location-weex'
export function chooseLocation (...array) {
const api = __uniConfig.nvueCompiler === 'uni-app' ? weex : webview
const api = __uniConfig.nvueCompiler !== 'weex' ? weex : webview
return api.chooseLocation(...array)
}
......@@ -2,6 +2,6 @@ import * as webview from './open-location-webview'
import * as weex from './open-location-weex'
export function openLocation (...array) {
const api = __uniConfig.nvueCompiler === 'uni-app' ? weex : webview
const api = __uniConfig.nvueCompiler !== 'weex' ? weex : webview
return api.openLocation(...array)
}
......@@ -84,7 +84,7 @@ export function showPage ({
animationType: 'pop-in',
animationDuration: 200,
uniNView: {
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || '/template'}/${url}.js`,
path: `${(typeof process === 'object' && process.env && process.env.VUE_APP_TEMPLATE_PATH) || ''}/${url}.js`,
defaultFontSize: plus_.screen.resolutionWidth / 20,
viewport: plus_.screen.resolutionWidth
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册