From 81da03d981d0f08a2e8b46d7a2a9874eef02f671 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 14 二月 2023 14:47:07 +0800
Subject: [PATCH] Merge pull request #743 from zhulangren/patch-1

---
 web_src/src/components/dialog/addUser.vue |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/web_src/src/components/dialog/addUser.vue b/web_src/src/components/dialog/addUser.vue
index 612c1e5..9ac38aa 100644
--- a/web_src/src/components/dialog/addUser.vue
+++ b/web_src/src/components/dialog/addUser.vue
@@ -100,7 +100,7 @@
     onSubmit: function () {
       this.$axios({
         method: 'post',
-        url: "/api/user/add",
+        url: "./api/user/add",
         params: {
           username: this.username,
           password: this.password,
@@ -139,16 +139,11 @@
 
       this.$axios({
         method: 'get',
-        url: "/api/role/all"
+        url: "./api/role/all"
       }).then((res) => {
         this.loading = true;
-        console.info(res)
-        res.data
-        console.info(res.data.code)
         if (res.data.code === 0) {
-          console.info(res.data.data)
           this.options=res.data.data
-
         }
       }).catch((error) => {
         console.error(error)

--
Gitblit v1.8.0