From f731a5898828a959983d5e407223f8eb311e72b6 Mon Sep 17 00:00:00 2001 From: yanghang Date: Wed, 10 Jan 2024 09:53:06 +0800 Subject: [PATCH] fix:Modify some description fields --- README.md | 3 +++ src/app/admin/view/home/index.vue | 2 +- src/app/components.d.ts | 32 +++++++++++++++++++++++++++++++ src/packages/http/request.ts | 2 -- vite.config.ts | 12 ------------ 5 files changed, 36 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index a9d367bf..c1a6c06a 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,9 @@ createApp(App).use(install).use(router).mount('#app') 正在以及想使用框架快速中后台系统,熟悉Vue使用它开发过几个实际项目,热爱技术,爱学习,想进阶和提升的同学 +### 后端框架 +[egg-bag-framework](https://github.com/hangjob/egg-bag-framework) + ## 学习讨论 ![微信群-定期更新](./scan.jpg) diff --git a/src/app/admin/view/home/index.vue b/src/app/admin/view/home/index.vue index ecd1a31d..f2b8079d 100644 --- a/src/app/admin/view/home/index.vue +++ b/src/app/admin/view/home/index.vue @@ -15,7 +15,7 @@ tleData.time }},准备吃什么呢?

前端工程师 | - 阿里巴巴,vue-bag-admin,采用Vite4.4、Vue3.3、TypeScript、JavaScript构建,支持多种写法和调用,完整的框架体系,适合响应式中后台管理系统,支持现有业务各种扩展....

+ 品茗科技,vue-bag-admin,🍁采用Vite4、Vue3、Pinia 、Naive UI 构建,构建企业npm依赖包中后台管理系统基础框架,做到框架(packages)和应用(app)分开,即可以减少项目之间的耦合,也能提升项目扩展性...

diff --git a/src/app/components.d.ts b/src/app/components.d.ts index 15553d7b..f7d75663 100644 --- a/src/app/components.d.ts +++ b/src/app/components.d.ts @@ -7,13 +7,24 @@ export {} declare module 'vue' { export interface GlobalComponents { + NAlert: typeof import('naive-ui')['NAlert'] + NAutoComplete: typeof import('naive-ui')['NAutoComplete'] + NBadge: typeof import('naive-ui')['NBadge'] NBreadcrumb: typeof import('naive-ui')['NBreadcrumb'] NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem'] NButton: typeof import('naive-ui')['NButton'] NButtonGroup: typeof import('naive-ui')['NButtonGroup'] + NCalendar: typeof import('naive-ui')['NCalendar'] NCard: typeof import('naive-ui')['NCard'] + NCarousel: typeof import('naive-ui')['NCarousel'] NCheckbox: typeof import('naive-ui')['NCheckbox'] + NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup'] + NColorPicker: typeof import('naive-ui')['NColorPicker'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] + NDataTable: typeof import('naive-ui')['NDataTable'] + NDatePicker: typeof import('naive-ui')['NDatePicker'] + NDescriptions: typeof import('naive-ui')['NDescriptions'] + NDescriptionsItem: typeof import('naive-ui')['NDescriptionsItem'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDivider: typeof import('naive-ui')['NDivider'] NDrawer: typeof import('naive-ui')['NDrawer'] @@ -23,13 +34,17 @@ declare module 'vue' { NEmpty: typeof import('naive-ui')['NEmpty'] NForm: typeof import('naive-ui')['NForm'] NFormItem: typeof import('naive-ui')['NFormItem'] + NGradientText: typeof import('naive-ui')['NGradientText'] NGrid: typeof import('naive-ui')['NGrid'] NGridItem: typeof import('naive-ui')['NGridItem'] NH1: typeof import('naive-ui')['NH1'] NH2: typeof import('naive-ui')['NH2'] NIcon: typeof import('naive-ui')['NIcon'] + NImage: typeof import('naive-ui')['NImage'] + NImageGroup: typeof import('naive-ui')['NImageGroup'] NInput: typeof import('naive-ui')['NInput'] NInputGroup: typeof import('naive-ui')['NInputGroup'] + NInputNumber: typeof import('naive-ui')['NInputNumber'] NLayout: typeof import('naive-ui')['NLayout'] NLayoutHeader: typeof import('naive-ui')['NLayoutHeader'] NLayoutSider: typeof import('naive-ui')['NLayoutSider'] @@ -37,19 +52,36 @@ declare module 'vue' { NListItem: typeof import('naive-ui')['NListItem'] NMenu: typeof import('naive-ui')['NMenu'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] + NModal: typeof import('naive-ui')['NModal'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] NNumberAnimation: typeof import('naive-ui')['NNumberAnimation'] + NP: typeof import('naive-ui')['NP'] + NPagination: typeof import('naive-ui')['NPagination'] NPopover: typeof import('naive-ui')['NPopover'] + NPopselect: typeof import('naive-ui')['NPopselect'] + NProgress: typeof import('naive-ui')['NProgress'] + NRadioButton: typeof import('naive-ui')['NRadioButton'] + NRadioGroup: typeof import('naive-ui')['NRadioGroup'] + NResult: typeof import('naive-ui')['NResult'] + NScrollbar: typeof import('naive-ui')['NScrollbar'] NSelect: typeof import('naive-ui')['NSelect'] NSpace: typeof import('naive-ui')['NSpace'] NSpin: typeof import('naive-ui')['NSpin'] NStatistic: typeof import('naive-ui')['NStatistic'] NSwitch: typeof import('naive-ui')['NSwitch'] + NTab: typeof import('naive-ui')['NTab'] + NTable: typeof import('naive-ui')['NTable'] NTabPane: typeof import('naive-ui')['NTabPane'] NTabs: typeof import('naive-ui')['NTabs'] NTag: typeof import('naive-ui')['NTag'] NText: typeof import('naive-ui')['NText'] NThing: typeof import('naive-ui')['NThing'] + NTimeline: typeof import('naive-ui')['NTimeline'] + NTimelineItem: typeof import('naive-ui')['NTimelineItem'] + NTree: typeof import('naive-ui')['NTree'] + NUpload: typeof import('naive-ui')['NUpload'] + NUploadDragger: typeof import('naive-ui')['NUploadDragger'] + NWatermark: typeof import('naive-ui')['NWatermark'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/src/packages/http/request.ts b/src/packages/http/request.ts index ecded028..88b73d3e 100644 --- a/src/packages/http/request.ts +++ b/src/packages/http/request.ts @@ -22,7 +22,6 @@ http.interceptors.request.use((config: InternalAxiosRequestConfig) => { http.interceptors.response.use((response: AxiosResponse) => { const {code, msg} = response.data if (code === 1) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore if (response.config.hint && msg) { window.$message.success(msg) @@ -30,7 +29,6 @@ http.interceptors.response.use((response: AxiosResponse) => { return response.data } if(code === 1003){ - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore http.$router.push(http.$configOptions.resetPath) } diff --git a/vite.config.ts b/vite.config.ts index c95c4fc0..ad939266 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -45,18 +45,6 @@ export default ({mode}: { mode: any }) => { server: { host: "0.0.0.0", port: 8280, - https: false, - proxy: { - "^/api": { - target: "https://vite.itnavs.com/", - changeOrigin: true, - }, - "^/bic": { - target: "https://api.vipbic.com/", - changeOrigin: true, - rewrite: (path: any) => path.replace(/^\/bic/, "") - }, - } } }) }