mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-21 02:15:54 +08:00
所有页面res.code替换为res.success
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
pageData:modelForm,
|
||||
}
|
||||
API_floor.updateHome(this.$route.query.id, data).then(res=> {
|
||||
if(res.code === 200) {
|
||||
if(res.success) {
|
||||
this.$Message.success('保存模板成功');
|
||||
} else {
|
||||
this.$Message.error(res.message)
|
||||
@@ -63,7 +63,7 @@ export default {
|
||||
},
|
||||
getTemplateItem(id){ // 获取模板数据
|
||||
API_floor.getHomeData(id).then(res => {
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
let pageData = res.result.pageData;
|
||||
if(pageData) {
|
||||
pageData = JSON.parse(pageData);
|
||||
|
||||
Reference in New Issue
Block a user