Browse Source

Merge branch 'master' of http://192.168.123.2:3000/fort23/010GMClient

Administrator 9 months ago
parent
commit
2ba635022f
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/components/player/playerInfo/index.vue

+ 4 - 3
src/components/player/playerInfo/index.vue

@@ -100,17 +100,18 @@ const submitForm = () => {
         srvId:props.ruleForm.gId
         srvId:props.ruleForm.gId
     }
     }
     playerApi.editPlayerInfo(data).then((resp) => {
     playerApi.editPlayerInfo(data).then((resp) => {
-        let result = resp.data.result + "";
+        let result = resp.data.result;
         let jsonData = JSON.parse(result);
         let jsonData = JSON.parse(result);
+        
         if (jsonData.msg === '修改角色信息失败' || jsonData.msg === '参数错误') {
         if (jsonData.msg === '修改角色信息失败' || jsonData.msg === '参数错误') {
             ElMessage({
             ElMessage({
-                message: jsonData.msg + "",
+                message: jsonData.msg,
                 type: 'error',
                 type: 'error',
                 duration: 3000
                 duration: 3000
             });
             });
         } else {
         } else {
             ElMessage({
             ElMessage({
-                message: jsonData.msg + "",
+                message: jsonData.msg,
                 type: 'success',
                 type: 'success',
                 duration: 3000
                 duration: 3000
             });
             });