first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import axios from "axios";
axios.defaults.baseURL = 'http://127.0.0.1:3000';
export default {
get (options) {
return new Promise(function(resolve,reject) {
axios.get(options.url, {
params: options.data
})
.then(function (response) {
resolve(response.data);
})
.catch(function (error) {
reject(error);
});
});
},
post () {
}
}

View File

@@ -0,0 +1,8 @@
import index from "./server/index"
import user from "./server/user"
export default {
index: index,
user: user
}

View File

@@ -0,0 +1,8 @@
import http from "../index"
import config from "../../config"
export default {
async getQuery(params) {
return await http.get({ url: config.httpApi.query, data: params });
}
}

View File

@@ -0,0 +1,11 @@
import http from "../index"
import config from "../../config"
export default {
async Login(params) {
return await http.get({ url: config.httpApi.login, data: params });
},
async Reg(params) {
return await http.get({ url: config.httpApi.reg, data: params });
}
}