对tenant的请求地址进行修改
This commit is contained in:
parent
a5ee34e6fb
commit
5a52a58c0c
@ -1,11 +1,8 @@
|
||||
import axios from "axios";
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
addTenant(tenant) {
|
||||
const url='http://localhost:8080/addTenant'
|
||||
console.log("hahahhaahhha"+tenant.phone);
|
||||
const url = '/api/tenant/addTenant'
|
||||
const data = {
|
||||
symbol: tenant.symbol,
|
||||
contact: tenant.contact,
|
||||
@ -25,24 +22,21 @@ export default {
|
||||
},
|
||||
|
||||
|
||||
getAll(){
|
||||
const url='http://localhost:8080/getAllTenant'
|
||||
return axios.get(url)
|
||||
.then(response => {
|
||||
async getAll() {
|
||||
const url = '/api/tenant/getAllTenant'
|
||||
const response = await axios.get(url)
|
||||
return response.data;
|
||||
});
|
||||
},
|
||||
|
||||
update(tenant) {
|
||||
const url='http://localhost:8080/updateTenant';
|
||||
console.log("哈哈哈哈哈哈哈啊哈哈哈哈哈"+tenant);
|
||||
const url = '/api/tenant/updateTenant';
|
||||
return axios.post(url, tenant)
|
||||
.then(response => {
|
||||
});
|
||||
},
|
||||
|
||||
delete(tenant) {
|
||||
const url='http://localhost:8080/deleteTenant';
|
||||
const url = '/api/tenant/deleteTenant';
|
||||
return axios.post(url, tenant)
|
||||
.then(response => {
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user