Commit 6dd252f3 by Lin

fix: 格式化处理

1 parent de3966d8
/** import { computed } from "vue";
* 权限相关的组合式 API
* 提供便捷的权限检查方法
*/
import { computed } from 'vue'; import { useUserStore } from "@/stores";
import { useUserStore } from '@/stores';
export function useAuth() { export function useAuth() {
const userStore = useUserStore(); const userStore = useUserStore();
......
import type { RouteRecordRaw } from 'vue-router'; import type { RouteRecordRaw } from "vue-router";
import { ref } from 'vue'; import { ref } from "vue";
import { defineStore } from 'pinia'; import { defineStore } from "pinia";
/** /**
* 权限路由管理 * 权限路由管理
*/ */
export const usePermissionStore = defineStore('permission', () => { export const usePermissionStore = defineStore("permission", () => {
// 所有路由 // 所有路由
const routes = ref<RouteRecordRaw[]>([]); const routes = ref<RouteRecordRaw[]>([]);
......
{ {
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"baseUrl": ".",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "bundler", "moduleResolution": "bundler",
"paths": {
"@/*": ["src/*"]
},
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["vite.config.ts"] "include": ["vite.config.ts", "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!