diff --git a/.env b/.env
index 4c0e516..812a14d 100644
--- a/.env
+++ b/.env
@@ -10,7 +10,7 @@ VITE_BASE = /
# 接口前缀:参见 axios 的 baseURL
VITE_API = https://appnify.app.juetan.cn/
# 首页路径
-VITE_HOME_PATH = /home/home
+VITE_HOME_PATH = /home
# 路由模式:web(路径) hash(锚点)
VITE_HISTORY = web
@@ -24,7 +24,7 @@ VITE_PORT = 3020
# 代理前缀
VITE_PROXY_PREFIX = /api,/upload
# 代理地址
-VITE_PROXY = http://127.0.0.1:3030/
+VITE_PROXY = https://appnify.app.juetan.cn/
# API文档 说明:需返回符合 OPENAPI 规范的json内容
VITE_OPENAPI = http://127.0.0.1:3030/openapi.json
# 文件后缀 说明:设为dev时会优先加载index.dev.vue文件,否则回退至index.vue文件
diff --git a/.gitea/stat.html b/.gitea/stat.html
index f1499d2..921e109 100644
--- a/.gitea/stat.html
+++ b/.gitea/stat.html
@@ -4818,7 +4818,7 @@ var drawChart = (function (exports) {
@@ -54,8 +50,8 @@ const style = computed(() => {
display: flex;
justify-content: center;
align-items: center;
- pointer-events: v-bind("style.pointerEvents");
- background-color: v-bind("style.backgroundColor");
+ pointer-events: v-bind('style.pointerEvents');
+ background-color: v-bind('style.backgroundColor');
}
.toast-content {
display: flex;
diff --git a/src/components/AnToast/index.ts b/src/components/AnToast/index.ts
new file mode 100644
index 0000000..ea9a28c
--- /dev/null
+++ b/src/components/AnToast/index.ts
@@ -0,0 +1,52 @@
+import { createVNode, render } from 'vue';
+import AnToast from './AnToast.vue';
+
+export interface AnToastOptions {
+ /**
+ * 展示内容
+ * @default
+ * ```ts
+ * '正在操作中,请稍等...'
+ * ```
+ */
+ message?: string;
+ /**
+ * 图标
+ * @default
+ * ```ts
+ * 'icon-park-outline-loading-one'
+ * ```
+ */
+ icon?: string;
+ /**
+ * 是否显示遮罩层
+ * @default
+ * ```ts
+ * true
+ * ```
+ */
+ mask?: boolean;
+ /**
+ * 是否覆盖窗口(即不允许其他操作)
+ * @default
+ * ```ts
+ * true
+ * ```
+ */
+ cover?: boolean;
+}
+
+export const toast = (messageOrOptions?: string | AnToastOptions) => {
+ if (typeof messageOrOptions === 'string') {
+ messageOrOptions = { message: messageOrOptions };
+ }
+ const container = document.createElement('div');
+ const vnode = createVNode(AnToast, messageOrOptions as any);
+ render(vnode, container);
+ document.body.appendChild(container);
+ const close = () => {
+ render(null, container);
+ document.body.removeChild(container);
+ };
+ return close;
+};
diff --git a/src/components/breadcrumb/temp.dev1.vue b/src/components/breadcrumb/temp.dev1.vue
deleted file mode 100644
index 36d8559..0000000
--- a/src/components/breadcrumb/temp.dev1.vue
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ node.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{
- "meta": {
- "sort": 10302,
- "title": "菜单管理",
- "icon": "icon-park-outline-add-subtract"
- }
-}
-
diff --git a/src/components/index.ts b/src/components/index.ts
index 6010e97..22aa00a 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -1,3 +1,2 @@
-export * from "./form";
-export * from "./table";
-export * from "./toast";
+export * from './form';
+export * from './table';
\ No newline at end of file
diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx
index 0bc1e25..8c64fb3 100644
--- a/src/components/table/table.tsx
+++ b/src/components/table/table.tsx
@@ -1,4 +1,4 @@
-import AniEmpty from "@/components/empty/AniEmpty.vue";
+import AniEmpty from "@/components/AnEmpty/AnEmpty.vue";
import { TableColumnData as BaseColumn, TableData as BaseData, Table as BaseTable } from "@arco-design/web-vue";
import { merge } from "lodash-es";
import { PropType, computed, defineComponent, reactive, ref } from "vue";
diff --git a/src/components/toast/index.ts b/src/components/toast/index.ts
deleted file mode 100644
index da08986..0000000
--- a/src/components/toast/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./toast";
diff --git a/src/components/toast/toast.ts b/src/components/toast/toast.ts
deleted file mode 100644
index 5791fe5..0000000
--- a/src/components/toast/toast.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { createVNode, render } from "vue";
-import Toast from "./toast.vue";
-
-export interface IToastOptions {
- /**
- * 展示内容
- * @default '正在操作中,请稍等...'
- */
- message?: string;
- /**
- * 图标
- * @default 'icon-park-outline-loading-one'
- */
- icon?: string;
- /**
- * 是否显示遮罩层
- * @default true
- */
- mask?: boolean;
- /**
- * 是否覆盖窗口(即不允许其他操作)
- * @default true
- */
- cover?: boolean;
-}
-
-export const toast = (messageOrOptions?: string | IToastOptions) => {
- if (typeof messageOrOptions === "string") {
- messageOrOptions = {
- message: messageOrOptions,
- };
- }
- const container = document.createElement("div");
- const vnode = createVNode(Toast, messageOrOptions as any);
- render(vnode, container);
- document.body.appendChild(container);
- const close = () => {
- render(null, container);
- document.body.removeChild(container);
- };
- return close;
-};
diff --git a/src/constants/defineConstants.ts b/src/constants/defineConstants.ts
index 29e46a5..d9b1540 100644
--- a/src/constants/defineConstants.ts
+++ b/src/constants/defineConstants.ts
@@ -9,30 +9,23 @@ class Constant {
/**
* 格式化值
- * @param value 值
- * @param key 对应属性名,默认为label
- * @returns
*/
- fmt(value: K, key?: keyof T[number]) {
- return this.raw.find((item) => item.value === value)?.[key ?? ("label" as any)];
+ fmt(value: K, key?: keyof T[number]) {
+ return this.raw.find(item => item.value === value)?.[key ?? ('label' as any)];
}
/**
* 获取对应属性值组成的数组
- * @param key 属性名,默认为value
- * @returns
*/
val(key?: K) {
- return this.raw.map((item) => item[key ?? ("value" as any)]);
+ return this.raw.map(item => item[key ?? ('value' as any)]);
}
/**
* 获取值对应的对象
- * @param value 值
- * @returns
*/
get(value: any) {
- return this.raw.find((item) => item.value === value);
+ return this.raw.find(item => item.value === value);
}
}
diff --git a/src/libs/dayjs/index.ts b/src/libs/dayjs/index.ts
index 5ebc652..e73da4a 100644
--- a/src/libs/dayjs/index.ts
+++ b/src/libs/dayjs/index.ts
@@ -1,28 +1,28 @@
-import dayjs from "dayjs";
-import "dayjs/locale/zh-cn";
-import localData from "dayjs/plugin/localeData";
-import relativeTime from "dayjs/plugin/relativeTime";
+import dayjs from 'dayjs';
+import 'dayjs/locale/zh-cn';
+import localData from 'dayjs/plugin/localeData';
+import relativeTime from 'dayjs/plugin/relativeTime';
/**
*
* 默认日期时间格式
*/
-const DATETIME = "YYYY-MM-DD HH:mm";
+const DATETIME = 'YYYY-MM-DD HH:mm';
/**
* 默认日期格式
*/
-const DATE = "YYYY-MM-DD";
+const DATE = 'YYYY-MM-DD';
/**
* 默认时间格式
*/
-const TIME = "HH:mm:ss";
+const TIME = 'HH:mm:ss';
/**
* 中文语言包
*/
-dayjs.locale("zh-cn");
+dayjs.locale('zh-cn');
/**
* 相对时间插件
@@ -37,7 +37,6 @@ dayjs.extend(relativeTime);
dayjs.extend(localData);
/**
- *
* 默认时间格式
*/
dayjs.DATETIME = DATETIME;
@@ -53,9 +52,13 @@ dayjs.DATE = DATE;
dayjs.TIME = TIME;
/**
- * 重写format方法,如果没有传入format参数,则使用默认的时间格式
+ * 保留原方法
*/
dayjs.prototype._format = dayjs.prototype.format;
+
+/**
+ * 重写,设置默认时间格式
+ */
dayjs.prototype.format = function (format?: string) {
if (format) {
return this._format(format);
@@ -64,4 +67,3 @@ dayjs.prototype.format = function (format?: string) {
};
export { DATE, DATETIME, TIME, dayjs };
-
diff --git a/src/main.ts b/src/main.ts
index 767b518..947a094 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,8 +1,8 @@
-import { createApp } from "vue";
-import App from "./App.vue";
-import { router } from "./router";
-import { store } from "./store";
-import { style } from "./styles";
+import { createApp } from 'vue';
+import App from './App.vue';
+import { router } from './router';
+import { store } from './store';
+import { style } from './styles';
const run = async () => {
const app = createApp(App);
@@ -10,7 +10,7 @@ const run = async () => {
app.use(style);
app.use(router);
await router.isReady();
- app.mount("#app");
+ app.mount('#app');
};
run();
diff --git a/src/pages/content/category/index.vue b/src/pages/content/category/index.vue
index 8dd1dfd..23bee04 100644
--- a/src/pages/content/category/index.vue
+++ b/src/pages/content/category/index.vue
@@ -1,52 +1,45 @@
-
+
-
-
-
{
"meta": {
diff --git a/src/pages/content/media/components/group.vue b/src/pages/content/media/components/AnGroup.vue
similarity index 81%
rename from src/pages/content/media/components/group.vue
rename to src/pages/content/media/components/AnGroup.vue
index 3bf7eaf..73864b8 100644
--- a/src/pages/content/media/components/group.vue
+++ b/src/pages/content/media/components/AnGroup.vue
@@ -1,7 +1,7 @@
diff --git a/src/pages/content/media/index.vue b/src/pages/content/media/index.vue
index d062615..34aefa7 100644
--- a/src/pages/content/media/index.vue
+++ b/src/pages/content/media/index.vue
@@ -2,16 +2,13 @@
@@ -20,70 +17,47 @@
-
-
diff --git a/src/pages/home/demo.vue b/src/pages/home/demo.vue
deleted file mode 100644
index e6fbcb5..0000000
--- a/src/pages/home/demo.vue
+++ /dev/null
@@ -1,205 +0,0 @@
-
-
-
-
- 菜单权限
- 展开
-
-
- 全部选择
-
-
-
-
-
-
-
-
-
-
-
-
-
-{
- "meta": {
- "sort": 10201,
- "title": "表格组件",
- "icon": "icon-park-outline-add-subtract"
- }
-}
-
diff --git a/src/pages/home/home.vue b/src/pages/home/index.vue
similarity index 100%
rename from src/pages/home/home.vue
rename to src/pages/home/index.vue
diff --git a/src/pages/home/test.vue b/src/pages/home/test.vue
deleted file mode 100644
index aa25fa8..0000000
--- a/src/pages/home/test.vue
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 上传者
-
-
-
-
-
-
-
-
-
-
-
- 绝弹土豆
-
-
-
-
-
-
- 排序:默认
-
-
-
-
-
-
-
- 默认
-
-
-
- 按创建时间升序
-
- 按创建时间降序
- 按文件大小升序
- 按文件大小降序
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 测试图片.png
-
-
- image/png 1.2MB
-
-
-
-
-
-
- 绝弹
-
-
2023-08-17 17:00:01
-
-
-
-
-
-
-
-
-
-
-
- 详情
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改密码
-
-
-
-
-
-
-
-
-
-
-
-{
- "meta": {
- "sort": 10202,
- "title": "表单组件",
- "icon": "icon-park-outline-aperture-priority"
- }
-}
-
diff --git a/src/pages/system/dict/index.vue b/src/pages/system/dict/index.vue
index e24835b..72f5469 100644
--- a/src/pages/system/dict/index.vue
+++ b/src/pages/system/dict/index.vue
@@ -66,7 +66,7 @@ const { component: DictTable, tableRef } = useTable({
],
},
],
- source(search) {
+ source: search => {
return api.dict.getDicts({ ...search, typeId: current.value?.id } as any);
},
search: {
@@ -84,19 +84,18 @@ const { component: DictTable, tableRef } = useTable({
create: {
title: '新增字典',
width: 580,
- model: {
- typeId: undefined,
- },
items: [
{
field: 'name',
label: '字典名',
setter: 'input',
+ required: true,
},
{
field: 'code',
label: '字典值',
setter: 'input',
+ required: true,
},
{
field: 'description',
@@ -105,14 +104,16 @@ const { component: DictTable, tableRef } = useTable({
},
],
submit: model => {
- return api.dict.addDict({ ...model, typeId: current.value?.id } as any);
+ const data = { ...model, typeId: current.value?.id } as any;
+ return api.dict.addDict(data);
},
},
modify: {
extend: true,
title: '修改字典',
submit: model => {
- return api.dict.setDict(model.id, { ...model, typeId: current.value?.id } as any);
+ const data = { ...model, typeId: current.value?.id } as any;
+ return api.dict.setDict(model.id, data);
},
},
});
diff --git a/src/pages/system/index.vue b/src/pages/system/index.vue
index 16c8c89..cb84ee2 100644
--- a/src/pages/system/index.vue
+++ b/src/pages/system/index.vue
@@ -1,6 +1,4 @@
-
-
{
diff --git a/src/pages/system/user/index.vue b/src/pages/system/user/index.vue
index 0716dd8..2f115eb 100644
--- a/src/pages/system/user/index.vue
+++ b/src/pages/system/user/index.vue
@@ -1,31 +1,30 @@
-
+
diff --git a/src/router/guards/auth.ts b/src/router/guards/auth.ts
index ad34c2d..88efbef 100644
--- a/src/router/guards/auth.ts
+++ b/src/router/guards/auth.ts
@@ -1,16 +1,16 @@
-import { api } from "@/api";
-import { store, useUserStore } from "@/store";
-import { useMenuStore } from "@/store/menu";
-import { treeEach, treeFilter, treeFind } from "@/utils/listToTree";
-import { Notification } from "@arco-design/web-vue";
-import { Router } from "vue-router";
-import { MenuItem, menus } from "../menus";
-import { APP_HOME_NAME } from "../routes/base";
-import { APP_ROUTE_NAME, routes } from "../routes/page";
-import { env } from "@/config/env";
+import { api } from '@/api';
+import { store, useUserStore } from '@/store';
+import { useMenuStore } from '@/store/menu';
+import { treeEach, treeFilter, treeFind } from '@/utils/listToTree';
+import { Notification } from '@arco-design/web-vue';
+import { Router } from 'vue-router';
+import { menus } from '../menus';
+import { APP_HOME_NAME } from '../routes/base';
+import { APP_ROUTE_NAME, routes } from '../routes/page';
+import { env } from '@/config/env';
-const WHITE_LIST = ["/:all(.*)*"];
-const UNSIGNIN_LIST = ["/login"];
+const WHITE_LIST = ['/:all(.*)*'];
+const UNSIGNIN_LIST = ['/login'];
/**
* 权限守卫
@@ -23,7 +23,7 @@ export function useAuthGuard(router: Router) {
const userStore = useUserStore(store);
const redirect = router.currentRoute.value.path;
userStore.clearUser();
- router.push({ path: "/login", query: { redirect } });
+ router.push({ path: '/login', query: { redirect } });
};
router.beforeEach(async function (to, from) {
@@ -31,7 +31,7 @@ export function useAuthGuard(router: Router) {
const menuStore = useMenuStore(store);
// 手动指定直接通过
- if (to.meta.auth?.some((i) => i === "*")) {
+ if (to.meta.auth?.some(i => i === '*')) {
return true;
}
@@ -49,13 +49,13 @@ export function useAuthGuard(router: Router) {
// 已登陆进行提示
Notification.warning({
- title: "跳转提示",
+ title: '跳转提示',
content: `您已登陆,如需重新登陆请退出后再操作!`,
});
// 不是从路由跳转的,跳转回首页
if (!from.matched.length) {
- return "/";
+ return '/';
}
// 已登陆不允许
@@ -64,15 +64,15 @@ export function useAuthGuard(router: Router) {
// 未登录跳转到登陆页面
if (!userStore.accessToken) {
- return { path: "/login", query: { redirect: to.path } };
+ return { path: '/login', query: { redirect: to.path } };
}
// 未获取菜单进行获取
if (!menuStore.menus.length) {
// 菜单处理
- const authMenus = treeFilter(menus, (item) => {
+ const authMenus = treeFilter(menus, item => {
if (item.path === env.homePath) {
- item.path = "/";
+ item.path = '/';
}
return true;
});
@@ -101,9 +101,9 @@ export function useAuthGuard(router: Router) {
menuStore.setCacheAppNames(appNames);
// 首页处理
- const home = treeFind(routes, (i) => i.path === menuStore.home);
+ const home = treeFind(routes, i => i.path === menuStore.home);
if (home) {
- const route = { ...home, name: APP_HOME_NAME, alias: "/" };
+ const route = { ...home, name: APP_HOME_NAME, alias: '/' };
router.removeRoute(home.name!);
router.addRoute(APP_ROUTE_NAME, route);
return router.replace(to.path);
diff --git a/src/router/guards/progress.ts b/src/router/guards/progress.ts
index 6a5d724..6207292 100644
--- a/src/router/guards/progress.ts
+++ b/src/router/guards/progress.ts
@@ -1,6 +1,6 @@
-import { NProgress } from "@/libs/nprogress";
-import { useAppStore } from "@/store";
-import { Router } from "vue-router";
+import { NProgress } from '@/libs/nprogress';
+import { useAppStore } from '@/store';
+import { Router } from 'vue-router';
const routeMap = new Map();
diff --git a/src/router/guards/title.ts b/src/router/guards/title.ts
index 0520d8d..3c6bf7d 100644
--- a/src/router/guards/title.ts
+++ b/src/router/guards/title.ts
@@ -1,5 +1,5 @@
-import { store, useAppStore } from "@/store";
-import { Router } from "vue-router";
+import { store, useAppStore } from '@/store';
+import { Router } from 'vue-router';
export function useTitleGuard(router: Router) {
router.beforeEach(function (to) {
diff --git a/src/router/index.ts b/src/router/index.ts
index 2ea8aa7..773b4ef 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,4 +1,3 @@
-export * from "./menus";
-export * from "./router";
-export * from "./routes/page";
-
+export * from './menus';
+export * from './router';
+export * from './routes/page';
diff --git a/src/router/menus/index.ts b/src/router/menus/index.ts
index 9216467..2f4ff0e 100644
--- a/src/router/menus/index.ts
+++ b/src/router/menus/index.ts
@@ -1,5 +1,5 @@
-import { RouteRecordRaw } from "vue-router";
-import { appRoutes } from "../routes/page";
+import { RouteRecordRaw } from 'vue-router';
+import { appRoutes } from '../routes/page';
/**
* 菜单项类型
@@ -20,7 +20,6 @@ export interface MenuItem {
/**
* 转换页面路由为菜单项
* @param routes 路由配置
- * @returns
*/
function routesToItems(routes: RouteRecordRaw[]): MenuItem[] {
const items: MenuItem[] = [];
@@ -29,8 +28,8 @@ function routesToItems(routes: RouteRecordRaw[]): MenuItem[] {
const { meta = {}, parentMeta, path } = route as any;
const { title, sort, icon, keepAlive = false, name } = meta;
let id = path;
- let paths = route.path.split("/");
- let parentId = paths.slice(0, -1).join("/");
+ let paths = route.path.split('/');
+ let parentId = paths.slice(0, -1).join('/');
if (parentMeta) {
const { title, icon, sort } = parentMeta;
id = `${path}/index`;
@@ -42,11 +41,11 @@ function routesToItems(routes: RouteRecordRaw[]): MenuItem[] {
path,
id: path,
keepAlive: false,
- parentId: paths.slice(0, -1).join("/"),
+ parentId: paths.slice(0, -1).join('/'),
});
} else {
- const p = paths.slice(0, -1).join("/");
- if (routes.some((i) => i.path === p) && parentMeta) {
+ const p = paths.slice(0, -1).join('/');
+ if (routes.some(i => i.path === p) && parentMeta) {
parentId = p;
}
}
@@ -59,7 +58,6 @@ function routesToItems(routes: RouteRecordRaw[]): MenuItem[] {
/**
* 转换菜单项为树形结构
* @param list 菜单项列表
- * @returns
*/
function listToTree(list: MenuItem[]) {
const map: Record = {};
@@ -85,9 +83,8 @@ function listToTree(list: MenuItem[]) {
* 排序菜单项
* @param routes 菜单项列表
* @param key 排序字段
- * @returns
*/
-function sort(routes: T[], key = "sort") {
+function sort(routes: T[], key = 'sort') {
return routes.sort((a, b) => {
if (Array.isArray(a.children)) {
a.children = sort(a.children);
diff --git a/src/router/router/index.ts b/src/router/router/index.ts
index 42530c5..b9d65af 100644
--- a/src/router/router/index.ts
+++ b/src/router/router/index.ts
@@ -1,10 +1,10 @@
-import { createRouter } from "vue-router";
-import { useAuthGuard } from "../guards/auth";
-import { useProgressGard } from "../guards/progress";
-import { useTitleGuard } from "../guards/title";
-import { baseRoutes } from "../routes/base";
-import { historyMode } from "./util";
-import { routes } from "../routes/page";
+import { createRouter } from 'vue-router';
+import { useAuthGuard } from '../guards/auth';
+import { useProgressGard } from '../guards/progress';
+import { useTitleGuard } from '../guards/title';
+import { baseRoutes } from '../routes/base';
+import { historyMode } from './util';
+import { routes } from '../routes/page';
/**
* 路由实例
diff --git a/src/router/router/util.ts b/src/router/router/util.ts
index 3c61d32..a343327 100644
--- a/src/router/router/util.ts
+++ b/src/router/router/util.ts
@@ -1,5 +1,5 @@
-import { env } from "@/config/env";
-import { createWebHashHistory, createWebHistory } from "vue-router";
+import { env } from '@/config/env';
+import { createWebHashHistory, createWebHistory } from 'vue-router';
/**
* 模式映射
diff --git a/src/router/routes/base.ts b/src/router/routes/base.ts
index 6b129e3..98ebeb7 100644
--- a/src/router/routes/base.ts
+++ b/src/router/routes/base.ts
@@ -1,14 +1,14 @@
-import { RouteRecordRaw } from "vue-router";
+import { RouteRecordRaw } from 'vue-router';
-export const APP_HOME_NAME = "__APP_HOME__";
+export const APP_HOME_NAME = '__APP_HOME__';
/**
* 基本路由
*/
export const baseRoutes: RouteRecordRaw[] = [
{
- path: "/",
+ path: '/',
name: APP_HOME_NAME,
- component: () => "Home Page",
+ component: () => 'Home Page',
},
];
diff --git a/src/router/routes/page.ts b/src/router/routes/page.ts
index 8d39e38..c18c486 100644
--- a/src/router/routes/page.ts
+++ b/src/router/routes/page.ts
@@ -1,8 +1,8 @@
-import generatedRoutes from "virtual:generated-pages";
-import { RouteRecordRaw } from "vue-router";
+import generatedRoutes from 'virtual:generated-pages';
+import { RouteRecordRaw } from 'vue-router';
-export const TOP_ROUTE_PREF = "_";
-export const APP_ROUTE_NAME = "_layout";
+export const TOP_ROUTE_PREF = '_';
+export const APP_ROUTE_NAME = '_layout';
/**
* 转换路由
@@ -17,7 +17,7 @@ const transformRoutes = (routes: RouteRecordRaw[]) => {
if (route.name === APP_ROUTE_NAME) {
route.children = appRoutes;
}
- route.path = route.path.replace(TOP_ROUTE_PREF, "");
+ route.path = route.path.replace(TOP_ROUTE_PREF, '');
topRoutes.push(route);
continue;
}
diff --git a/src/store/index.ts b/src/store/index.ts
index ae6d5b0..2e3a00e 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -1,4 +1,3 @@
-export * from "./app";
-export * from "./store";
-export * from "./user";
-
+export * from './app';
+export * from './store';
+export * from './user';
diff --git a/src/types/auto-component.d.ts b/src/types/auto-component.d.ts
index 8fa1457..defaea9 100644
--- a/src/types/auto-component.d.ts
+++ b/src/types/auto-component.d.ts
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
ACheckbox: typeof import('@arco-design/web-vue')['Checkbox']
ACheckboxGroup: typeof import('@arco-design/web-vue')['CheckboxGroup']
AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider']
+ ADatePicker: typeof import('@arco-design/web-vue')['DatePicker']
ADivider: typeof import('@arco-design/web-vue')['Divider']
ADoption: typeof import('@arco-design/web-vue')['Doption']
ADrawer: typeof import('@arco-design/web-vue')['Drawer']
@@ -42,7 +43,10 @@ declare module '@vue/runtime-core' {
AMenu: typeof import('@arco-design/web-vue')['Menu']
AMenuItem: typeof import('@arco-design/web-vue')['MenuItem']
AModal: typeof import('@arco-design/web-vue')['Modal']
- AniEmpty: typeof import('./../components/empty/AniEmpty.vue')['default']
+ AnEmpty: typeof import('./../components/AnEmpty/AnEmpty.vue')['default']
+ AnForbidden: typeof import('./../components/AnForbidden/AnForbidden.vue')['default']
+ AnForbiden: typeof import('./../components/AnForbidden/AnForbiden.vue')['default']
+ AnToast: typeof import('./../components/AnToast/AnToast.vue')['default']
APagination: typeof import('@arco-design/web-vue')['Pagination']
APopover: typeof import('@arco-design/web-vue')['Popover']
AProgress: typeof import('@arco-design/web-vue')['Progress']
@@ -53,6 +57,8 @@ declare module '@vue/runtime-core' {
ASpace: typeof import('@arco-design/web-vue')['Space']
ASpin: typeof import('@arco-design/web-vue')['Spin']
ASwitch: typeof import('@arco-design/web-vue')['Switch']
+ ATabPane: typeof import('@arco-design/web-vue')['TabPane']
+ ATabs: typeof import('@arco-design/web-vue')['Tabs']
ATag: typeof import('@arco-design/web-vue')['Tag']
ATextarea: typeof import('@arco-design/web-vue')['Textarea']
ATooltip: typeof import('@arco-design/web-vue')['Tooltip']
@@ -71,7 +77,7 @@ declare module '@vue/runtime-core' {
InputTexter: typeof import('./../components/editor/components/InputTexter.vue')['default']
Marquee: typeof import('./../components/editor/blocks/text/marquee.vue')['default']
Option: typeof import('./../components/editor/blocks/date/option.vue')['default']
- Page403: typeof import('./../components/error/page-403.vue')['default']
+ Page403: typeof import('./../components/AnForbiden/page-403.vue')['default']
PanelHeader: typeof import('./../components/editor/components/PanelHeader.vue')['default']
PanelLeft: typeof import('./../components/editor/components/PanelLeft.vue')['default']
PanelMain: typeof import('./../components/editor/components/PanelMain.vue')['default']
@@ -81,7 +87,5 @@ declare module '@vue/runtime-core' {
Render: typeof import('./../components/editor/blocks/date/render.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
- 'Temp.dev1': typeof import('./../components/breadcrumb/temp.dev1.vue')['default']
- Toast: typeof import('./../components/toast/toast.vue')['default']
}
}