瀏覽代碼

Changed Posts to just call /api/....

master
LeneS 5 年之前
父節點
當前提交
51580357fb
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8
    8
      src/store/modules/user/register.js

+ 8
- 8
src/store/modules/user/register.js 查看文件

86
     //   commit,
86
     //   commit,
87
     // }, id) {
87
     // }, id) {
88
     //   axios
88
     //   axios
89
-    //     .get(`http://192.168.6.188:5000/api/user/${id}`)
89
+    //     .get(`/api/user/${id}`)
90
     //     .then(result => commit('setIndividual', result.data))
90
     //     .then(result => commit('setIndividual', result.data))
91
     //     .catch(console.error);
91
     //     .catch(console.error);
92
     // },
92
     // },
94
     //   commit,
94
     //   commit,
95
     // }, id) {
95
     // }, id) {
96
     //   axios
96
     //   axios
97
-    //     .get(`http://192.168.6.188:5000/api/agency/${id}`)
97
+    //     .get(`/api/agency/${id}`)
98
     //     .then(result => commit('setAgency', result.data))
98
     //     .then(result => commit('setAgency', result.data))
99
     //     .catch(console.error);
99
     //     .catch(console.error);
100
     // },
100
     // },
103
       commit,
103
       commit,
104
     }, item) {
104
     }, item) {
105
       axios
105
       axios
106
-        .post('http://192.168.6.188:5000/api/register/register', item)
106
+        .post('/api/register/register', item)
107
         .then(result => commit('addIndividual', result.data))
107
         .then(result => commit('addIndividual', result.data))
108
         .catch(console.error);
108
         .catch(console.error);
109
     },
109
     },
111
       commit,
111
       commit,
112
     }, item) {
112
     }, item) {
113
       axios
113
       axios
114
-        .post('http://192.168.6.188:5000/api/register/registeragency', item)
114
+        .post('/api/register/registeragency', item)
115
         .then(result => commit('addAgency', result.data))
115
         .then(result => commit('addAgency', result.data))
116
         .catch(console.error);
116
         .catch(console.error);
117
     },
117
     },
119
     //   commit,
119
     //   commit,
120
     // }, item) {
120
     // }, item) {
121
     //   axios
121
     //   axios
122
-    //     .put('http://192.168.6.188:5000/api/individual', item)
122
+    //     .put('/api/individual', item)
123
     //     .then(result => commit('updateIndividual', item))
123
     //     .then(result => commit('updateIndividual', item))
124
     //     .catch(console.error);
124
     //     .catch(console.error);
125
     // },
125
     // },
127
     //   commit,
127
     //   commit,
128
     // }, item) {
128
     // }, item) {
129
     //   axios
129
     //   axios
130
-    //     .put('http://192.168.6.188:5000/api/agency', item)
130
+    //     .put('/api/agency', item)
131
     //     .then(result => commit('updateAgency', item))
131
     //     .then(result => commit('updateAgency', item))
132
     //     .catch(console.error);
132
     //     .catch(console.error);
133
     // },
133
     // },
145
     //   commit,
145
     //   commit,
146
     // }, id) {
146
     // }, id) {
147
     //   axios
147
     //   axios
148
-    //     .delete(`http://192.168.6.188:5000/api/individual/${id}`)
148
+    //     .delete(`/api/individual/${id}`)
149
     //     .then(result => commit('removeIndividual', id))
149
     //     .then(result => commit('removeIndividual', id))
150
     //     .catch(console.error);
150
     //     .catch(console.error);
151
     // },
151
     // },
153
     //   commit,
153
     //   commit,
154
     // }, id) {
154
     // }, id) {
155
     //   axios
155
     //   axios
156
-    //     .delete(`http://192.168.6.188:5000/api/agency/${id}`)
156
+    //     .delete(`/api/agency/${id}`)
157
     //     .then(result => commit('removeAgency', id))
157
     //     .then(result => commit('removeAgency', id))
158
     //     .catch(console.error);
158
     //     .catch(console.error);
159
     // },
159
     // },

Loading…
取消
儲存