Kirin 2 年之前
父节点
当前提交
c985d1224e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/admin/controller/user/User.php
  2. 1 1
      app/admin/view/user/user/see.php

+ 1 - 1
app/admin/controller/user/User.php

@@ -107,7 +107,7 @@ class User extends AuthController
         if (!$id) return $this->failed('缺少参数');
         if (!$id) return $this->failed('缺少参数');
         $res = UserStorePromoter::where('id', $id)->delete();
         $res = UserStorePromoter::where('id', $id)->delete();
         if (!$res) return Json::successful('删除失败');
         if (!$res) return Json::successful('删除失败');
-        else  return Json::successful('删除成功');
+        else  return Json::fail('删除成功');
     }
     }
 
 
     public function save_set_store($uid = 0)
     public function save_set_store($uid = 0)

+ 1 - 1
app/admin/view/user/user/see.php

@@ -410,7 +410,7 @@
                     $eb.$swal('delete', function () {
                     $eb.$swal('delete', function () {
                         $eb.axios.get(layList.U({a: 'del_store', q: {id: id}})).then(function (res) {
                         $eb.axios.get(layList.U({a: 'del_store', q: {id: id}})).then(function (res) {
                             if (res.data.code == 200) {
                             if (res.data.code == 200) {
-                                this.reload();
+
                             } else {
                             } else {
 
 
                             }
                             }