mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 08:55:52 +08:00
所有页面res.code替换为res.success
This commit is contained in:
@@ -124,7 +124,7 @@ function getTokenDebounce() {
|
||||
lock = true
|
||||
let oldRefreshToken = getStore("refreshToken");
|
||||
handleRefreshToken(oldRefreshToken).then(res => {
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
let {
|
||||
accessToken,
|
||||
refreshToken
|
||||
|
||||
@@ -58,7 +58,7 @@ methods: {
|
||||
townName: this.addrContent.regeocode.addressComponent.township
|
||||
}
|
||||
getRegion(params).then(res=>{
|
||||
if(res.code == 200) {
|
||||
if(res.success) {
|
||||
this.addrContent.addr = res.result.name.replace(/,/g," ")
|
||||
this.addrContent.addrId = res.result.id
|
||||
this.loading = false
|
||||
|
||||
@@ -478,7 +478,7 @@ export default {
|
||||
onOk: () => {
|
||||
API_Shop.reconciliation(this.id).then((res) => {
|
||||
this.$Modal.remove();
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("账单核对成功");
|
||||
this.init();
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
onOk: () => {
|
||||
API_Shop.logisticsChecked(v.id).then((res) => {
|
||||
this.$Modal.remove();
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("物流公司开启成功");
|
||||
this.init();
|
||||
}
|
||||
@@ -183,7 +183,7 @@
|
||||
onOk: () => {
|
||||
API_Shop.logisticsUnChecked(v.selected).then((res) => {
|
||||
this.$Modal.remove();
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("物流公司关闭成功");
|
||||
this.init();
|
||||
}
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
onOk: () => {
|
||||
API_Shop.deleteShopAddress(v.id).then((res) => {
|
||||
this.$Modal.remove();
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("此自自提地址已删除");
|
||||
this.init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user