Commit 30b7bb9e by Lin

feat: 格式化校验异常报错处理

1 parent 15ceb11b
// 此文件由 auto-routes 插件自动生成,请勿手动编辑
// 如需自定义路由,请在 vite.config.ts 中配置 customRules
// 生成时间: 2026/2/9 18:11:36
import type { RouteRecordRaw } from 'vue-router';
export const autoRoutes: RouteRecordRaw[] = [
{
path: "/assistant/index",
id: "assistant",
title: "Assistant",
icon: "",
level: 1,
hidden: false,
meta: {
"authority": "assistant",
"keepAlive": false,
"requiresAuth": false,
"title": "Assistant"
},
children: [
{
path: "add-update",
id: "assistant-add-update",
title: "AddUpdate",
icon: "",
level: 2,
hidden: false,
meta: {
"authority": "assistant:add-update",
"keepAlive": false,
"order": 1,
"requiresAuth": false,
"title": "AddUpdate"
},
}
],
},
{
path: "/manage-agentic/index",
id: "manage-agentic",
title: "ManageAgentic",
icon: "",
level: 1,
hidden: false,
meta: {
"authority": "manage-agentic",
"keepAlive": false,
"requiresAuth": false,
"title": "ManageAgentic"
},
},
{
path: "/manage-konw/index",
id: "manage-konw",
title: "ManageKonw",
icon: "",
level: 1,
hidden: false,
meta: {
"authority": "manage-konw",
"keepAlive": false,
"requiresAuth": false,
"title": "ManageKonw"
},
children: [
{
path: "add-update",
id: "manage-konw-add-update",
title: "AddUpdate",
icon: "",
level: 2,
hidden: false,
meta: {
"authority": "manage-konw:add-update",
"keepAlive": false,
"order": 1,
"requiresAuth": false,
"title": "AddUpdate"
},
}
],
},
{
path: "/communication",
id: ".-communication",
title: "Communication",
icon: "",
level: 2,
hidden: false,
meta: {
"authority": "communication",
"keepAlive": false,
"order": 1,
"requiresAuth": false,
"title": "Communication"
},
},
{
path: "/home",
id: ".-home",
title: "Home",
icon: "",
level: 2,
hidden: false,
meta: {
"authority": "home",
"keepAlive": false,
"order": 1,
"requiresAuth": false,
"title": "Home"
},
},
{
path: "/settings",
id: ".-settings",
title: "Settings",
icon: "",
level: 2,
hidden: false,
meta: {
"authority": "settings",
"keepAlive": false,
"order": 1,
"requiresAuth": false,
"title": "Settings"
},
},
{
path: "/user",
id: ".-user",
title: "User",
icon: "",
level: 2,
hidden: false,
meta: {
"authority": "user",
"keepAlive": false,
"order": 1,
"requiresAuth": false,
"title": "User"
},
},
{
path: "/:pathMatch(.*)*",
component: () => import("@/views/NotFound.vue"),
meta: {
"title": "404",
"hidden": true
},
}
];
...@@ -47,7 +47,8 @@ export async function javascript(): Promise<Linter.Config[]> { ...@@ -47,7 +47,8 @@ export async function javascript(): Promise<Linter.Config[]> {
...js.configs.recommended.rules, ...js.configs.recommended.rules,
"object-curly-spacing": [ "error", "always" ], "object-curly-spacing": [ "error", "always" ],
semi: [ "error", "always" ], semi: [ "error", "always" ],
"array-bracket-spacing": [ "error", "always" ], // 禁用 array-bracket-spacing,避免与 Prettier 冲突
"array-bracket-spacing": "off",
indent: [ indent: [
"error", "error",
"tab", "tab",
......
...@@ -64,7 +64,8 @@ export async function vue(): Promise<Linter.Config[]> { ...@@ -64,7 +64,8 @@ export async function vue(): Promise<Linter.Config[]> {
// 继承插件基础规则 // 继承插件基础规则
...pluginVue.configs?.base?.rules, ...pluginVue.configs?.base?.rules,
"array-bracket-spacing": [ "error", "always" ], // 禁用 array-bracket-spacing,避免与 Prettier 冲突
"array-bracket-spacing": "off",
/** /**
* vue/attribute-hyphenation: 要求模板属性使用连字符风格 * vue/attribute-hyphenation: 要求模板属性使用连字符风格
* 设置原因: HTML 属性习惯上使用连字符(kebab-case),与 HTML 标准一致,便于代码审阅和 HTML 直接识别 * 设置原因: HTML 属性习惯上使用连字符(kebab-case),与 HTML 标准一致,便于代码审阅和 HTML 直接识别
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!