This commit is contained in:
2025-03-27 15:38:21 +08:00
parent 3c85d9e0e7
commit 15b26ab2d9
31 changed files with 1003 additions and 22 deletions

View File

@@ -2,10 +2,12 @@ import {showToast} from "./uils.js";
const request = (options) => {
return new Promise((resolve, reject) => {
const {url, method} = options;
const {url, method, data, params} = options;
uni.request({
method: method,
data: data,
params: params,
url: `${import.meta.env.VITE_API_URL}${url}`,
success: ({data}) => {
if (data.code !== 0) {

View File

@@ -19,3 +19,7 @@ export const toPage = (url) => {
url: url,
}).then();
}
export const backPage = () => {
window.history.back();
}