File tree Expand file tree Collapse file tree 12 files changed +30
-124
lines changed
layouts/BasicLayout/components Expand file tree Collapse file tree 12 files changed +30
-124
lines changed Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
// 应用名
7
- export const APP_TITLE = 'vite-vue3-admin ' ;
7
+ export const APP_TITLE = 'Vite-Vue3-Admin ' ;
8
8
9
9
// 本地服务端口
10
10
export const VITE_PORT = 3000 ;
@@ -21,7 +21,6 @@ export const MOCK_API_BASE_URL = '/mock/api';
21
21
export const MOCK_API_TARGET_URL = 'http://localhost:3000' ;
22
22
23
23
// iconfontUrl
24
- // export const ICONFONTURL = '//at.alicdn.com/t/font_2927003_tz5qryon1k.js';
25
24
export const ICONFONTURL = '//at.alicdn.com/t/font_3004192_9jmc1z9neiw.js' ; // 去色版
26
25
27
26
// 包依赖分析
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name configManualChunk
3
+ * @description chunk 拆包优化
4
+ */
5
+
1
6
const vendorLibs : { match : string [ ] ; output : string } [ ] = [
2
7
{
3
8
match : [ 'ant-design-vue' ] ,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name AutoImportDeps
3
+ * @description 按需加载,自动引入依赖
4
+ */
1
5
import AutoImport from 'unplugin-auto-import/vite' ;
2
6
3
7
export const AutoImportDeps = ( ) =>
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name autoRegistryComponents
3
+ * @description 按需加载,自动引入组件
4
+ */
1
5
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' ;
2
6
import Components from 'unplugin-vue-components/vite' ;
3
7
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export function configMockPlugin(isBuild: boolean) {
9
9
ignore : / ^ \_ / ,
10
10
mockPath : 'mock' ,
11
11
localEnabled : ! isBuild ,
12
- prodEnabled : isBuild , // 为了演示,线上开启 mock
13
- // 开发环境无需关系
12
+ prodEnabled : isBuild , // 为了演示,线上开启 mock,实际开发请关闭,会影响打包体积
13
+ // 开发环境无需关心
14
14
// injectCode 只受prodEnabled影响
15
15
// https://github.com/anncwb/vite-plugin-mock/issues/9
16
16
// 下面这段代码会被注入 main.ts
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 " />
5
5
< link rel ="icon " href ="/favicon.ico " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
- < title > Vite Vue3 TypeScript App </ title >
7
+ < title > Vite- Vue3-Admin </ title >
8
8
</ head >
9
9
< body >
10
10
< div id ="app "> </ div >
Original file line number Diff line number Diff line change 5
5
declare module 'vue' {
6
6
export interface GlobalComponents {
7
7
AAlert : typeof import ( 'ant-design-vue/es' ) [ 'Alert' ] ;
8
+ AAvatar : typeof import ( 'ant-design-vue/es' ) [ 'Avatar' ] ;
8
9
ABreadcrumb : typeof import ( 'ant-design-vue/es' ) [ 'Breadcrumb' ] ;
9
10
AButton : typeof import ( 'ant-design-vue/es' ) [ 'Button' ] ;
10
11
ACard : typeof import ( 'ant-design-vue/es' ) [ 'Card' ] ;
@@ -24,9 +25,11 @@ declare module 'vue' {
24
25
AMenuItem : typeof import ( 'ant-design-vue/es' ) [ 'MenuItem' ] ;
25
26
APopconfirm : typeof import ( 'ant-design-vue/es' ) [ 'Popconfirm' ] ;
26
27
ARangePicker : typeof import ( 'ant-design-vue/es' ) [ 'RangePicker' ] ;
28
+ AResult : typeof import ( 'ant-design-vue/es' ) [ 'Result' ] ;
27
29
ARow : typeof import ( 'ant-design-vue/es' ) [ 'Row' ] ;
28
30
ASelect : typeof import ( 'ant-design-vue/es' ) [ 'Select' ] ;
29
31
ASpace : typeof import ( 'ant-design-vue/es' ) [ 'Space' ] ;
32
+ ASpin : typeof import ( 'ant-design-vue/es' ) [ 'Spin' ] ;
30
33
ATable : typeof import ( 'ant-design-vue/es' ) [ 'Table' ] ;
31
34
Icon : typeof import ( './components/Icon/index.vue' ) [ 'default' ] ;
32
35
Modal : typeof import ( './components/Modal/index.vue' ) [ 'default' ] ;
Original file line number Diff line number Diff line change 25
25
accept: {
26
26
type: String ,
27
27
default : () => {
28
- return ' .sol ' ;
28
+ return ' .doc ' ;
29
29
},
30
30
},
31
31
size: {
44
44
headers: {
45
45
Authorization: localStorage .getItem (' x-auth-token' ),
46
46
},
47
- action: location .origin + ' /api/v1/contract/ upload' ,
47
+ action: location .origin + ' /api/v1/upload' ,
48
48
});
49
49
50
50
const fileList = ref ([]);
Original file line number Diff line number Diff line change 3
3
<div class =" logo-wrap" >
4
4
<router-link :to =" { path: '/' }" >
5
5
<img :src =" logo" class =" logo" />
6
- <h1 class =" title" > SimpleChain联盟链 </h1 >
6
+ <h1 class =" title" > {{ APP_TITLE }} </h1 >
7
7
<!-- <span class="subTitle">基础版</span> -->
8
8
</router-link >
9
9
</div >
15
15
<script setup lang="ts">
16
16
import RightContent from ' ./RightContent.vue' ;
17
17
import logo from ' /@/assets/images/logo.png' ;
18
+ import { APP_TITLE } from ' ../../../../config/constant' ;
18
19
</script >
19
20
<style lang="less" scoped>
20
21
.header {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments