Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_pda_Web
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
高宇
template_pda_Web
Commits
95c1b0c5
Commit
95c1b0c5
authored
Mar 12, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wenj
parent
0aaf92b0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
1209 deletions
+68
-1209
README.md
README.md
+58
-1209
main.js
src/main.js
+7
-0
index.vue
src/views/setup/index.vue
+3
-0
No files found.
README.md
View file @
95c1b0c5
This diff is collapsed.
Click to expand it.
src/main.js
View file @
95c1b0c5
...
...
@@ -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
.
getDict
=
getDict
...
...
src/views/setup/index.vue
View file @
95c1b0c5
...
...
@@ -58,6 +58,7 @@ export default {
console
.
log
(
'调用前'
,
getToken
())
const
params
=
{
flag
:
'openCamera'
,
subPath
:
'jbcheck'
,
tokenMsg
:
getToken
()
}
this
.
$WebView
.
openCamera
(
params
).
then
(
res
=>
{
...
...
@@ -69,6 +70,7 @@ export default {
/** 拍照取相册按钮*/
handleTakePhotosAlbum
()
{
const
params
=
{
subPath
:
'jbcheck'
,
tokenMsg
:
getToken
()
}
this
.
$WebView
.
openCameraStorage
(
params
).
then
(
res
=>
{
...
...
@@ -79,6 +81,7 @@ export default {
/** 全部实现功能(带相机,相册,文件资源功能)*/
handlePpenCameraAll
()
{
const
params
=
{
subPath
:
'jbcheck'
,
tokenMsg
:
getToken
()
}
this
.
$WebView
.
openCameraAll
(
params
).
then
(
res
=>
{
...
...
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