Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 08854582
authored
Oct 31, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
清除缓存中的车型数据
1 parent
f1a20b7d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
login/loading/loading.js
packageMine/pages/setting/setting.js
pages/tab/mine/mine.js
utils/request/environment.js
utils/request/request.js
login/loading/loading.js
View file @
0885458
...
@@ -53,6 +53,7 @@ Page({
...
@@ -53,6 +53,7 @@ Page({
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'posterId'
)
wx
.
$storage
.
rm
(
'posterId'
)
wx
.
$storage
.
rm
(
'mock_data'
)
wx
.
$storage
.
rm
(
'mock_data'
)
wx
.
$storage
.
rm
(
'car_brand_list'
)
wx
.
$storage
.
set
(
'firstLogin'
,
'firstLogin'
)
wx
.
$storage
.
set
(
'firstLogin'
,
'firstLogin'
)
wx
.
$storage
.
set
(
'disLikeRecordFlag'
,
true
)
wx
.
$storage
.
set
(
'disLikeRecordFlag'
,
true
)
this
.
accountLogin
(
obj
)
this
.
accountLogin
(
obj
)
...
@@ -144,11 +145,13 @@ Page({
...
@@ -144,11 +145,13 @@ Page({
})
})
if
(
reload
)
{
if
(
reload
)
{
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'car_brand_list'
)
wx
.
$router
.
reLaunch
(
'login.index'
,
obj
)
wx
.
$router
.
reLaunch
(
'login.index'
,
obj
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
`error`
,
error
);
console
.
log
(
`error`
,
error
);
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'car_brand_list'
)
wx
.
$router
.
reLaunch
(
'login.index'
,
obj
)
wx
.
$router
.
reLaunch
(
'login.index'
,
obj
)
}
}
}
}
...
...
packageMine/pages/setting/setting.js
View file @
0885458
...
@@ -33,6 +33,7 @@ Page({
...
@@ -33,6 +33,7 @@ Page({
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'car_brand_list'
)
wx
.
$router
.
reLaunch
(
'login.index'
)
wx
.
$router
.
reLaunch
(
'login.index'
)
})
})
}
}
...
...
pages/tab/mine/mine.js
View file @
0885458
...
@@ -98,6 +98,7 @@ Page({
...
@@ -98,6 +98,7 @@ Page({
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'posterId'
)
wx
.
$storage
.
rm
(
'posterId'
)
wx
.
$storage
.
rm
(
'mock_data'
)
wx
.
$storage
.
rm
(
'mock_data'
)
wx
.
$storage
.
rm
(
'car_brand_list'
)
wx
.
$router
.
reLaunch
(
'login.index'
)
wx
.
$router
.
reLaunch
(
'login.index'
)
})
})
}
}
...
...
utils/request/environment.js
View file @
0885458
...
@@ -21,13 +21,13 @@ const h5Obj = {
...
@@ -21,13 +21,13 @@ const h5Obj = {
2测试
2测试
3生产
3生产
*/
*/
let
index
=
1
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
// console.log(systemInfo);
// console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion)
// console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2
//手动控制体验版环境的请求 true就依据下面index false就默认为2
const
manual
=
tru
e
const
manual
=
fals
e
const
release
=
false
const
release
=
false
// let index = 1
// let index = 1
...
...
utils/request/request.js
View file @
0885458
...
@@ -58,6 +58,7 @@ class Request {
...
@@ -58,6 +58,7 @@ class Request {
if
(
code
==
20
||
code
==
21
)
{
if
(
code
==
20
||
code
==
21
)
{
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'car_brand_list'
)
let
thisPage
=
wx
.
$router
.
getPageInstance
(),
let
thisPage
=
wx
.
$router
.
getPageInstance
(),
autoLoginObject
=
wx
.
$storage
.
get
(
'auto_login_object'
)
autoLoginObject
=
wx
.
$storage
.
get
(
'auto_login_object'
)
if
(
thisPage
.
route
==
'login/loading/loading'
)
{
if
(
thisPage
.
route
==
'login/loading/loading'
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment