-
+
{
已认证
未认证
-
+
{
+
+
diff --git a/src/views/pointViews/PointUserSettings.vue b/src/views/pointViews/PointUserSettings.vue
index 85671a7..ef68e82 100644
--- a/src/views/pointViews/PointUserSettings.vue
+++ b/src/views/pointViews/PointUserSettings.vue
@@ -274,55 +274,71 @@ defineExpose({
-
+
添加地址
+
- {
- currentAddress = address
- showAddressModal = true
- }
- "
- >
- 修改
-
- deleteAddress(address?.id ?? '')">
-
-
- 删除
-
-
- 确定要删除这个收货信息吗?
-
+
+ {
+ currentAddress = address
+ showAddressModal = true
+ }
+ "
+ >
+ 修改
+
+ deleteAddress(address?.id ?? '')">
+
+
+ 删除
+
+
+ 确定要删除这个收货信息吗?
+
+
@@ -333,59 +349,93 @@ defineExpose({
title="登录链接"
name="2"
>
-
+
+
+ 使用此链接可以直接登录到您的账号
+
+
+
-
+
- 登出
+ 登出当前账号
确定要登出吗?
-
- 切换账号
-
-
+ 切换账号
+
+
+
-
-
+
- 当前账号
-
- {{ item.name }}
-
-
- {{ item.uId }}
-
-
-
-
+
+
+ 当前账号
+
+
+ {{ item.name }}
+
+
+
+ {{ item.uId }}
+
+
+
+
+
+
@@ -403,18 +453,23 @@ defineExpose({
ref="formRef"
:model="currentAddress"
:rules="rules"
+ label-placement="top"
>
-
+
@@ -423,8 +478,8 @@ defineExpose({
v-model:value="currentAddress.city"
:options="cityOptions(currentAddress.province)"
:disabled="!currentAddress?.province"
- placeholder="请选择市"
- style="width: 100px"
+ placeholder="市"
+ style="flex: 1; min-width: 100px"
filterable
@update:value="onAreaSelectChange(1)"
/>
@@ -433,8 +488,8 @@ defineExpose({
v-model:value="currentAddress.district"
:options="currentAddress.city ? districtOptions(currentAddress.province, currentAddress.city) : []"
:disabled="!currentAddress?.city"
- placeholder="请选择区"
- style="width: 100px"
+ placeholder="区"
+ style="flex: 1; min-width: 100px"
filterable
@update:value="onAreaSelectChange(2)"
/>
@@ -443,8 +498,8 @@ defineExpose({
v-model:value="currentAddress.street"
:options="currentAddress.city && currentAddress.district ? streetOptions(currentAddress.province, currentAddress.city, currentAddress.district) : []"
:disabled="!currentAddress?.district"
- placeholder="请选择街道"
- style="width: 150px"
+ placeholder="街道"
+ style="flex: 1; min-width: 120px"
filterable
/>
@@ -456,39 +511,43 @@ defineExpose({
>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
- 阅读并同意本站
+ 我已阅读并同意本站
-
- 保存
-
+
+ 取消
+
+
+ 保存
+
+
@@ -519,3 +588,37 @@ defineExpose({
+
+
diff --git a/vite.config.mts b/vite.config.mts
index b9701a4..04889b0 100644
--- a/vite.config.mts
+++ b/vite.config.mts
@@ -9,6 +9,7 @@ import Markdown from 'unplugin-vue-markdown/vite'
import { defineConfig } from 'vite'
import svgLoader from 'vite-svg-loader'
import { VineVitePlugin } from 'vue-vine/vite'
+// import MonacoEditorNlsPlugin, { esbuildPluginMonacoEditorNls, Languages } from 'vite-plugin-monaco-editor-nls'
// 自定义SVGO插件,删除所有名称以sodipodi:和inkscape:开头的元素
const removeSodipodiInkscape = {
@@ -87,6 +88,8 @@ export default defineConfig({
include: [/\.vue$/, /\.vue\?vue/, /\.md$/, /\.vine$/],
}),
VineVitePlugin(),
+ // Monaco 中文本地化
+ // MonacoEditorNlsPlugin({ locale: Languages.zh_hans }),
],
server: { port: 51000 },
resolve: { alias: { '@': path.resolve(__dirname, 'src') } },
@@ -97,9 +100,15 @@ export default defineConfig({
},
optimizeDeps: {
include: ['@vicons/fluent', '@vicons/ionicons5', 'vue', 'vue-router'],
+ esbuildOptions: {
+ // plugins: [
+ // esbuildPluginMonacoEditorNls({ locale: Languages.zh_hans }),
+ // ],
+ },
},
build: {
- sourcemap: true,
+ // 生产环境建议关闭以减少产物体积与网络请求
+ sourcemap: false,
target: 'esnext',
minify: 'oxc',
chunkSizeWarningLimit: 1000,
@@ -117,6 +126,37 @@ export default defineConfig({
test: /[\\/]node_modules[\\/](naive-ui|@vueuse[\\/]core)[\\/]/,
priority: -10,
},
+ // 精细化切分大体积依赖,提升缓存与首屏体积可控性
+ {
+ name: 'echarts-vendor',
+ test: /[\\/]node_modules[\\/](echarts|zrender|vue-echarts)[\\/]/,
+ priority: -20,
+ },
+ {
+ name: 'wangeditor-vendor',
+ test: /[\\/]node_modules[\\/]@wangeditor[\\/]/,
+ priority: -20,
+ },
+ {
+ name: 'hyperdx-vendor',
+ test: /[\\/]node_modules[\\/]@hyperdx[\\/]/,
+ priority: -20,
+ },
+ {
+ name: 'xlsx-vendor',
+ test: /[\\/]node_modules[\\/]xlsx[\\/]/,
+ priority: -20,
+ },
+ {
+ name: 'jszip-vendor',
+ test: /[\\/]node_modules[\\/]jszip[\\/]/,
+ priority: -20,
+ },
+ {
+ name: 'html2canvas-vendor',
+ test: /[\\/]node_modules[\\/]html2canvas[\\/]/,
+ priority: -20,
+ },
],
},
},