Commit 95c1b0c5 authored by 高宇's avatar 高宇

wenj

parent 0aaf92b0
This diff is collapsed.
...@@ -59,6 +59,13 @@ Viewer.setDefaults({ ...@@ -59,6 +59,13 @@ Viewer.setDefaults({
} }
}) })
// 打包清除所有console.log
if (process.env.NODE_ENV === 'production') {
if (window) {
window.console.log = function() {}
}
}
// 全局方法挂载 // 全局方法挂载
Vue.prototype.$WebView = WebView Vue.prototype.$WebView = WebView
Vue.prototype.getDict = getDict Vue.prototype.getDict = getDict
......
...@@ -58,6 +58,7 @@ export default { ...@@ -58,6 +58,7 @@ export default {
console.log('调用前', getToken()) console.log('调用前', getToken())
const params = { const params = {
flag: 'openCamera', flag: 'openCamera',
subPath: 'jbcheck',
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCamera(params).then(res => { this.$WebView.openCamera(params).then(res => {
...@@ -69,6 +70,7 @@ export default { ...@@ -69,6 +70,7 @@ export default {
/** 拍照取相册按钮*/ /** 拍照取相册按钮*/
handleTakePhotosAlbum() { handleTakePhotosAlbum() {
const params = { const params = {
subPath: 'jbcheck',
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCameraStorage(params).then(res => { this.$WebView.openCameraStorage(params).then(res => {
...@@ -79,6 +81,7 @@ export default { ...@@ -79,6 +81,7 @@ export default {
/** 全部实现功能(带相机,相册,文件资源功能)*/ /** 全部实现功能(带相机,相册,文件资源功能)*/
handlePpenCameraAll() { handlePpenCameraAll() {
const params = { const params = {
subPath: 'jbcheck',
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCameraAll(params).then(res => { this.$WebView.openCameraAll(params).then(res => {
......
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