diff --git a/src/api/ai/mindmap/index.ts b/src/api/ai/mindmap/index.ts index 1b784fac..59b4fd86 100644 --- a/src/api/ai/mindmap/index.ts +++ b/src/api/ai/mindmap/index.ts @@ -1,7 +1,7 @@ import { getAccessToken } from '@/utils/auth' import { fetchEventSource } from '@microsoft/fetch-event-source' import { config } from '@/config/axios/config' -import request from '@/config/axios' +import request from '@/config/axios' // AI 思维导图 VO // AI 思维导图 VO export interface MindMapVO { diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue index 8835774f..6414eaab 100644 --- a/src/components/DictTag/src/DictTag.vue +++ b/src/components/DictTag/src/DictTag.vue @@ -1,9 +1,9 @@ - + diff --git a/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue b/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue index 6360a044..fe092a03 100644 --- a/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue +++ b/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue @@ -1,35 +1,35 @@ - - + diff --git a/src/layout/components/TagsView/src/TagsView.vue b/src/layout/components/TagsView/src/TagsView.vue index cdd7494d..6061d1fe 100644 --- a/src/layout/components/TagsView/src/TagsView.vue +++ b/src/layout/components/TagsView/src/TagsView.vue @@ -1,7 +1,7 @@ diff --git a/src/views/member/user/UserLevelUpdateForm.vue b/src/views/member/user/components/UserLevelUpdateForm.vue similarity index 100% rename from src/views/member/user/UserLevelUpdateForm.vue rename to src/views/member/user/components/UserLevelUpdateForm.vue diff --git a/src/views/member/user/UserPointUpdateForm.vue b/src/views/member/user/components/UserPointUpdateForm.vue similarity index 91% rename from src/views/member/user/UserPointUpdateForm.vue rename to src/views/member/user/components/UserPointUpdateForm.vue index 967ebe03..c277d9bf 100644 --- a/src/views/member/user/UserPointUpdateForm.vue +++ b/src/views/member/user/components/UserPointUpdateForm.vue @@ -1,11 +1,11 @@ - - - - - - diff --git a/src/views/member/user/detail/UserAccountInfo.vue b/src/views/member/user/detail/UserAccountInfo.vue index 7b7d6622..49071fdb 100644 --- a/src/views/member/user/detail/UserAccountInfo.vue +++ b/src/views/member/user/detail/UserAccountInfo.vue @@ -2,57 +2,57 @@ {{ user.levelName || '无' }} {{ user.experience || 0 }} {{ user.point || 0 }} {{ user.totalPoint || 0 }} {{ fenToYuan(wallet.balance || 0) }} {{ fenToYuan(wallet.totalExpense || 0) }} {{ fenToYuan(wallet.totalRecharge || 0) }} - - diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue index c87c1253..202bd622 100644 --- a/src/views/member/user/detail/index.vue +++ b/src/views/member/user/detail/index.vue @@ -7,7 +7,7 @@ - - + diff --git a/vite.config.ts b/vite.config.ts index 6ee45630..3ef21f26 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,85 +1,85 @@ -import { resolve } from 'path' -import { loadEnv } from 'vite' -import type { UserConfig, ConfigEnv } from 'vite' -import { createVitePlugins } from './build/vite' -import { include, exclude } from "./build/vite/optimize" +import {resolve} from 'path' +import type {ConfigEnv, UserConfig} from 'vite' +import {loadEnv} from 'vite' +import {createVitePlugins} from './build/vite' +import {exclude, include} from "./build/vite/optimize" // 当前执行node命令时文件夹的地址(工作目录) const root = process.cwd() // 路径查找 function pathResolve(dir: string) { - return resolve(root, '.', dir) + return resolve(root, '.', dir) } // https://vitejs.dev/config/ -export default ({ command, mode }: ConfigEnv): UserConfig => { - let env = {} as any - const isBuild = command === 'build' - if (!isBuild) { - env = loadEnv((process.argv[3] === '--mode' ? process.argv[4] : process.argv[3]), root) - } else { - env = loadEnv(mode, root) - } - return { - base: env.VITE_BASE_PATH, - root: root, - // 服务端渲染 - server: { - port: env.VITE_PORT, // 端口号 - host: "0.0.0.0", - open: env.VITE_OPEN === 'true', - // 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域 - // proxy: { - // ['/admin-api']: { - // target: env.VITE_BASE_URL, - // ws: false, - // changeOrigin: true, - // rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''), - // }, - // }, - }, - // 项目使用的vite插件。 单独提取到build/vite/plugin中管理 - plugins: createVitePlugins(), - css: { - preprocessorOptions: { - scss: { - additionalData: '@import "./src/styles/variables.scss";', - javascriptEnabled: true - } - } - }, - resolve: { - extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'], - alias: [ - { - find: 'vue-i18n', - replacement: 'vue-i18n/dist/vue-i18n.cjs.js' +export default ({command, mode}: ConfigEnv): UserConfig => { + let env = {} as any + const isBuild = command === 'build' + if (!isBuild) { + env = loadEnv((process.argv[3] === '--mode' ? process.argv[4] : process.argv[3]), root) + } else { + env = loadEnv(mode, root) + } + return { + base: env.VITE_BASE_PATH, + root: root, + // 服务端渲染 + server: { + port: env.VITE_PORT, // 端口号 + host: "0.0.0.0", + open: env.VITE_OPEN === 'true', + // 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域 + // proxy: { + // ['/admin-api']: { + // target: env.VITE_BASE_URL, + // ws: false, + // changeOrigin: true, + // rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''), + // }, + // }, }, - { - find: /\@\//, - replacement: `${pathResolve('src')}/` - } - ] - }, - build: { - minify: 'terser', - outDir: env.VITE_OUT_DIR || 'dist', - sourcemap: env.VITE_SOURCEMAP === 'true' ? 'inline' : false, - // brotliSize: false, - terserOptions: { - compress: { - drop_debugger: env.VITE_DROP_DEBUGGER === 'true', - drop_console: env.VITE_DROP_CONSOLE === 'true' - } - }, - rollupOptions: { - output: { - manualChunks: { - echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论 - } + // 项目使用的vite插件。 单独提取到build/vite/plugin中管理 + plugins: createVitePlugins(), + css: { + preprocessorOptions: { + scss: { + additionalData: '@import "./src/styles/variables.scss";', + javascriptEnabled: true + } + } }, - }, - }, - optimizeDeps: { include, exclude } - } + resolve: { + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'], + alias: [ + { + find: 'vue-i18n', + replacement: 'vue-i18n/dist/vue-i18n.cjs.js' + }, + { + find: /\@\//, + replacement: `${pathResolve('src')}/` + } + ] + }, + build: { + minify: 'terser', + outDir: env.VITE_OUT_DIR || 'dist', + sourcemap: env.VITE_SOURCEMAP === 'true' ? 'inline' : false, + // brotliSize: false, + terserOptions: { + compress: { + drop_debugger: env.VITE_DROP_DEBUGGER === 'true', + drop_console: env.VITE_DROP_CONSOLE === 'true' + } + }, + rollupOptions: { + output: { + manualChunks: { + echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论 + } + }, + }, + }, + optimizeDeps: {include, exclude} + } }