Skip to content

Commit

Permalink
@引用 + 侧边栏trigger隐藏
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjsah committed May 3, 2024
1 parent 4e2289f commit 10b7e20
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import BiliBili from './assets/bilibili.svg';
import Mcmod from './assets/mcmod.svg';
import QQ from './assets/QQ.svg';
import KOOK from './assets/kook.svg';
import router from './router/index.ts';
import router from '@/router/index.ts';
const items = ref([
{
Expand Down Expand Up @@ -104,7 +104,7 @@ function select(page: any) {
</template>
</a-page-header>
<a-layout>
<a-layout-sider class="app-sider" :collapsed="state.collapsed" collapsible>
<a-layout-sider class="app-sider" :collapsed="state.collapsed" :trigger="null" collapsible>
<a-menu
v-model:selectedKeys="state.selectedKeys"
mode="inline"
Expand Down
10 changes: 9 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,

// config
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
]
}
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import Components from 'unplugin-vue-components/vite';
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
import { resolve } from 'path';

export default defineConfig({
resolve: {
alias: {
'@': resolve(__dirname, './src') // 为./src配置别名
}
},
plugins: [
vue(),
Components({
Expand Down

0 comments on commit 10b7e20

Please sign in to comment.