所有页面res.code替换为res.success

This commit is contained in:
mabo
2021-05-17 16:04:36 +08:00
parent a4f2fc1381
commit eeb2e94d52
49 changed files with 82 additions and 84 deletions

View File

@@ -761,7 +761,7 @@ export default {
API_Setting.addSmsTemplatePage(this.templateForm)
.then((res) => {
this.loading = false;
if (res.code === 200) {
if (res.success) {
this.$Message.success("添加成功");
this.loading = false;
this.templateModalVisible = false;
@@ -775,7 +775,7 @@ export default {
API_Setting.editSmsTemplatePage(this.templateForm)
.then((res) => {
this.loading = false;
if (res.code === 200) {
if (res.success) {
this.$Message.success("修改成功");
this.loading = false;
this.templateModalVisible = false;

View File

@@ -124,7 +124,7 @@
if (this.id == undefined) {
API_Setting.addSmsSign(this.form).then(res => {
this.loading = false;
if (res.code === 200) {
if (res.success) {
this.$Message.success('添加成功');
this.$router.back()
}
@@ -134,7 +134,7 @@
} else {
API_Setting.editSmsSign(this.form).then(res => {
this.loading = false;
if (res.code === 200) {
if (res.success) {
this.$Message.success('修改成功');
this.$router.back()
}
@@ -150,7 +150,7 @@
getSmsSignDetail() {
API_Setting.smsSignDetail(this.id).then(res => {
this.loading = false;
if (res.code === 200) {
if (res.success) {
this.form = res.result
}
})