Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
099628d4
Commit
099628d4
authored
Sep 02, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 小程序进入后台记录图片日志
parent
a6352607
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
App.vue
src/App.vue
+5
-14
No files found.
src/App.vue
View file @
099628d4
...
...
@@ -4,6 +4,8 @@ import { AnalysysAgent } from "@/utils/analysys_paas.js";
import
util
from
"@/utils/util.js"
;
import
login
from
"@/utils/login.js"
;
import
upload
from
'@/components/upload/task.js'
import
{
ERROR
}
from
"@/common/log.js"
export
default
{
globalData
:
{
// 开发环境
...
...
@@ -74,8 +76,6 @@ export default {
this
.
getSystemInfo
();
// 系统自动登录::每次运行小程序重新获取用户信息
await
this
.
autoLogin
();
//this.deleteTempImg()
},
onShow
:
function
()
{
// 应用启动,或从后台进入前台显示
...
...
@@ -85,6 +85,9 @@ export default {
},
onHide
:
function
()
{
// 应用从前台进入后台
if
(
this
.
uploadTask
.
length
>
0
)
{
ERROR
(
'onUnload'
,
{
task
:
this
.
uploadTask
.
length
,
mobile
:
this
.
vuex_user
.
mobile
})
}
},
watch
:
{
uploadTask
:
function
(
newValue
,
oldValue
)
{
...
...
@@ -92,18 +95,6 @@ export default {
}
},
methods
:
{
// 处理已上传完成的图片
deleteTempImg
()
{
const
result
=
uni
.
getStorageSync
(
'delImg'
)
if
(
result
.
length
>
0
)
{
for
(
let
i
of
result
)
{
uni
.
removeSavedFile
({
filePath
:
i
})
}
uni
.
setStorageSync
(
'delImg'
,
[])
}
},
getSystemInfo
()
{
try
{
let
a
=
this
.
$u
.
sys
();
...
...
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