Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 8764ffd1
authored
Jun 20, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
请求方式修改
1 parent
1a1b14cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
15 deletions
src/api/shopConfig.js
src/store/modules/d2admin/modules/page.js
src/views/systemConfig/ShopConfig/shopSet.vue
src/api/shopConfig.js
View file @
8764ffd
...
...
@@ -11,7 +11,8 @@ export function shopSettingList(data) {
// 店铺设置保存
export
function
shopSetting
(
data
)
{
data
.
method
=
`
${
path
}
serviceMerchant.shopSetting`
return
request
(
data
)
// return request(data)
return
request
(
data
,
RequestMethods
.
POST
)
}
// 获取店铺设置
...
...
src/store/modules/d2admin/modules/page.js
View file @
8764ffd
...
...
@@ -134,19 +134,26 @@ export default {
*/
opend2db
({
state
,
dispatch
})
{
return
new
Promise
(
async
(
resolve
)
=>
{
// 设置数据
dispatch
(
"d2admin/db/set"
,
{
dbName
:
"sys"
,
path
:
"page.opened"
,
value
:
state
.
opened
,
user
:
true
},
{
root
:
true
}
)
try
{
// debugger
console
.
log
(
state
,
dispatch
)
// 设置数据
dispatch
(
"d2admin/db/set"
,
{
dbName
:
"sys"
,
path
:
"page.opened"
,
value
:
state
.
opened
,
user
:
true
},
{
root
:
true
}
)
}
catch
(
error
)
{
console
.
log
(
error
,
"opend2db"
)
}
// end
resolve
()
})
...
...
@@ -280,6 +287,7 @@ export default {
state
.
opened
.
splice
(
index
,
1
)
}
// 持久化
await
dispatch
(
"opend2db"
)
// 最后需要判断是否需要跳到首页
if
(
isCurrent
)
{
...
...
src/views/systemConfig/ShopConfig/shopSet.vue
View file @
8764ffd
...
...
@@ -374,7 +374,7 @@ export default {
}
})
console
.
log
(
_params
)
shopSetting
(
_params
).
then
(
res
=>
{
shopSetting
(
{
dataString
:
JSON
.
stringify
(
_params
)
}
).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
handleCancel
()
})
...
...
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