diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/admin.iml b/.idea/admin.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/admin.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..7c4836f --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..42cb54d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index 1831dde..82bbae0 100644 --- a/components.d.ts +++ b/components.d.ts @@ -1,81 +1,66 @@ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' +import '@vue/runtime-core'; -export {} +export {}; declare module '@vue/runtime-core' { export interface GlobalComponents { - AAffix: typeof import('@arco-design/web-vue')['Affix'] - AAlert: typeof import('@arco-design/web-vue')['Alert'] - AAvatar: typeof import('@arco-design/web-vue')['Avatar'] - AAvatarGroup: typeof import('@arco-design/web-vue')['AvatarGroup'] - ABadge: typeof import('@arco-design/web-vue')['Badge'] - ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb'] - ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem'] - AButton: typeof import('@arco-design/web-vue')['Button'] - ACard: typeof import('@arco-design/web-vue')['Card'] - ACardMeta: typeof import('@arco-design/web-vue')['CardMeta'] - ACarousel: typeof import('@arco-design/web-vue')['Carousel'] - ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem'] - ACascader: typeof import('@arco-design/web-vue')['Cascader'] - ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'] - ACol: typeof import('@arco-design/web-vue')['Col'] - AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] - ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] - ADivider: typeof import('@arco-design/web-vue')['Divider'] - ADoption: typeof import('@arco-design/web-vue')['Doption'] - ADrawer: typeof import('@arco-design/web-vue')['Drawer'] - ADropdown: typeof import('@arco-design/web-vue')['Dropdown'] - AForm: typeof import('@arco-design/web-vue')['Form'] - AFormItem: typeof import('@arco-design/web-vue')['FormItem'] - AGrid: typeof import('@arco-design/web-vue')['Grid'] - AGridItem: typeof import('@arco-design/web-vue')['GridItem'] - AInput: typeof import('@arco-design/web-vue')['Input'] - AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'] - AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] - AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'] - ALayout: typeof import('@arco-design/web-vue')['Layout'] - ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'] - ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'] - ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'] - ALink: typeof import('@arco-design/web-vue')['Link'] - AList: typeof import('@arco-design/web-vue')['List'] - AListItem: typeof import('@arco-design/web-vue')['ListItem'] - AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'] - AMenu: typeof import('@arco-design/web-vue')['Menu'] - AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] - AOption: typeof import('@arco-design/web-vue')['Option'] - APopover: typeof import('@arco-design/web-vue')['Popover'] - ARadio: typeof import('@arco-design/web-vue')['Radio'] - ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup'] - ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'] - AResult: typeof import('@arco-design/web-vue')['Result'] - ARow: typeof import('@arco-design/web-vue')['Row'] - ASelect: typeof import('@arco-design/web-vue')['Select'] - ASkeleton: typeof import('@arco-design/web-vue')['Skeleton'] - ASkeletonLine: typeof import('@arco-design/web-vue')['SkeletonLine'] - ASkeletonShape: typeof import('@arco-design/web-vue')['SkeletonShape'] - ASpace: typeof import('@arco-design/web-vue')['Space'] - ASpin: typeof import('@arco-design/web-vue')['Spin'] - AStatistic: typeof import('@arco-design/web-vue')['Statistic'] - AStep: typeof import('@arco-design/web-vue')['Step'] - ASteps: typeof import('@arco-design/web-vue')['Steps'] - ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'] - ASwitch: typeof import('@arco-design/web-vue')['Switch'] - ATable: typeof import('@arco-design/web-vue')['Table'] - ATableColumn: typeof import('@arco-design/web-vue')['TableColumn'] - 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'] - ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph'] - ATypographyText: typeof import('@arco-design/web-vue')['TypographyText'] - ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle'] - AUpload: typeof import('@arco-design/web-vue')['Upload'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] + AAffix: typeof import('@arco-design/web-vue')['Affix']; + AAlert: typeof import('@arco-design/web-vue')['Alert']; + AAvatar: typeof import('@arco-design/web-vue')['Avatar']; + ABadge: typeof import('@arco-design/web-vue')['Badge']; + ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb']; + ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem']; + AButton: typeof import('@arco-design/web-vue')['Button']; + ACard: typeof import('@arco-design/web-vue')['Card']; + ACarousel: typeof import('@arco-design/web-vue')['Carousel']; + ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem']; + ACheckbox: typeof import('@arco-design/web-vue')['Checkbox']; + ACol: typeof import('@arco-design/web-vue')['Col']; + AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider']; + ADivider: typeof import('@arco-design/web-vue')['Divider']; + ADoption: typeof import('@arco-design/web-vue')['Doption']; + ADrawer: typeof import('@arco-design/web-vue')['Drawer']; + ADropdown: typeof import('@arco-design/web-vue')['Dropdown']; + AForm: typeof import('@arco-design/web-vue')['Form']; + AFormItem: typeof import('@arco-design/web-vue')['FormItem']; + AGrid: typeof import('@arco-design/web-vue')['Grid']; + AGridItem: typeof import('@arco-design/web-vue')['GridItem']; + AInput: typeof import('@arco-design/web-vue')['Input']; + AInputNumber: typeof import('@arco-design/web-vue')['InputNumber']; + AInputPassword: typeof import('@arco-design/web-vue')['InputPassword']; + ALayout: typeof import('@arco-design/web-vue')['Layout']; + ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent']; + ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter']; + ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider']; + ALink: typeof import('@arco-design/web-vue')['Link']; + AList: typeof import('@arco-design/web-vue')['List']; + AListItem: typeof import('@arco-design/web-vue')['ListItem']; + AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta']; + AMenu: typeof import('@arco-design/web-vue')['Menu']; + AMenuItem: typeof import('@arco-design/web-vue')['MenuItem']; + APopover: typeof import('@arco-design/web-vue')['Popover']; + ARadio: typeof import('@arco-design/web-vue')['Radio']; + ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup']; + AResult: typeof import('@arco-design/web-vue')['Result']; + ARow: typeof import('@arco-design/web-vue')['Row']; + ASpace: typeof import('@arco-design/web-vue')['Space']; + ASpin: typeof import('@arco-design/web-vue')['Spin']; + AStatistic: typeof import('@arco-design/web-vue')['Statistic']; + ASubMenu: typeof import('@arco-design/web-vue')['SubMenu']; + ASwitch: typeof import('@arco-design/web-vue')['Switch']; + ATable: typeof import('@arco-design/web-vue')['Table']; + ATableColumn: typeof import('@arco-design/web-vue')['TableColumn']; + ATabPane: typeof import('@arco-design/web-vue')['TabPane']; + ATabs: typeof import('@arco-design/web-vue')['Tabs']; + ATag: typeof import('@arco-design/web-vue')['Tag']; + ATooltip: typeof import('@arco-design/web-vue')['Tooltip']; + ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph']; + ATypographyText: typeof import('@arco-design/web-vue')['TypographyText']; + ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle']; + RouterLink: typeof import('vue-router')['RouterLink']; + RouterView: typeof import('vue-router')['RouterView']; } } diff --git a/config/vite.config.build.ts b/config/vite.config.build.ts new file mode 100644 index 0000000..2d8eadd --- /dev/null +++ b/config/vite.config.build.ts @@ -0,0 +1,13 @@ +import { defineConfig } from 'vite'; + +export default defineConfig({ + mode: 'production', + resolve: { + alias: [ + { + find: 'vue', + replacement: 'vue/dist/vue.esm-bundler.js', // 需要编译tmp + }, + ], + }, +}); diff --git a/index.html b/index.html index 46cac70..fb21e80 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,14 @@ - - - - - Arco Design Pro - 开箱即用的中台前端/设计解决方案 - - -
- - + + + + + 后台管理 + + +
+ + diff --git a/package.json b/package.json index 3e3a037..a8d9593 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "arco-design-pro-vue", - "description": "Arco Design Pro for Vue", + "name": "admin", + "description": "后台管理", "version": "1.0.0", "private": true, - "author": "ArcoDesign Team", + "author": "xiaoxing", "license": "MIT", "scripts": { - "dev": "vite --config ./config/vite.config.dev.ts", + "dev": "vite --host --config ./config/vite.config.dev.ts", "build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts", "report": "cross-env REPORT=true npm run build", "preview": "npm run build && vite preview --host", diff --git a/src/store/modules/user/types.ts b/src/store/modules/user/types.ts index 75fd784..bb71535 100644 --- a/src/store/modules/user/types.ts +++ b/src/store/modules/user/types.ts @@ -1,4 +1,5 @@ export type RoleType = '' | '*' | 'admin' | 'user'; + export interface UserState { name?: string; avatar?: string;