1.代码优化

sws 2024-09-02
v1.0.0
sws 2024-09-02 09:54:31 +08:00
parent 5b8d8ce9bf
commit 2240e6d964
33 changed files with 14 additions and 1 deletions

13
src/api/common.ts Normal file
View File

@ -0,0 +1,13 @@
import request from '@/utils/request';
class CommonAPI {
/** 链接初始化接口 */
static getInit() {
return request({
url: `diyapi/init`,
method: 'post',
});
}
}
export default CommonAPI;

View File

@ -1,5 +1,5 @@
import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import Layout from "@/layout/index.vue";
import Layout from "@/views/layout/index.vue";
export const constantRoutes: RouteRecordRaw[] = [
{