befly-admin-ui 1.8.19 → 1.8.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  <div class="logo-icon">
8
8
  <AppIcon style="width: 24px; height: 24px; color: var(--primary-color)" />
9
9
  </div>
10
- <h2>{{ $Config.appTitle }}</h2>
10
+ <h2>{{ appTitle }}</h2>
11
11
  </div>
12
12
 
13
13
  <!-- 菜单区域 -->
@@ -45,7 +45,7 @@
45
45
  <span>系统设置</span>
46
46
  </div>
47
47
  <div class="footer-user">
48
- <t-upload :action="$Config.uploadUrl" :headers="uploadHeaders" :show-upload-list="false" accept="image/*" @success="onAvatarUploadSuccess">
48
+ <t-upload :action="uploadPath" :headers="uploadHeaders" :show-upload-list="false" accept="image/*" @success="onAvatarUploadSuccess">
49
49
  <div class="user-avatar" :class="{ 'has-avatar': $Data.userInfo.avatar }">
50
50
  <img v-if="$Data.userInfo.avatar" :src="$Data.userInfo.avatar" alt="avatar" />
51
51
  <UserIcon v-else style="width: 16px; height: 16px; color: #fff" />
@@ -81,7 +81,6 @@ import { CloudIcon, CloseCircleIcon, CodeIcon, LinkIcon, MenuIcon, SettingIcon,
81
81
 
82
82
  import { reactive, watch } from "vue";
83
83
  import { useRoute, useRouter } from "vue-router";
84
- import { $Config } from "@/plugins/config.js";
85
84
  import { $Http } from "@/plugins/http.js";
86
85
 
87
86
  const router = useRouter();
@@ -89,6 +88,8 @@ const route = useRoute();
89
88
  const uploadHeaders = { Authorization: localStorage.getItem("yicode-token") || "" };
90
89
 
91
90
  const loginPath = "/core/login";
91
+ const appTitle = import.meta.env.VITE_APP_TITLE;
92
+ const uploadPath = import.meta.env.VITE_UPLOAD_PATH;
92
93
 
93
94
  function isString(value) {
94
95
  return typeof value === "string";
@@ -324,7 +325,6 @@ watch(
324
325
 
325
326
  // 子菜单项(非父级的菜单项)
326
327
  .t-menu__item {
327
- margin: 2px var(--spacing-sm);
328
328
  border-radius: var(--border-radius);
329
329
  transition: all var(--transition-fast);
330
330
  position: relative;
@@ -357,7 +357,7 @@ watch(
357
357
  // 父级菜单的 header(不显示指示条)
358
358
  > .t-menu__item,
359
359
  > .t-submenu__header {
360
- margin: 2px var(--spacing-sm);
360
+ // margin: 2px var(--spacing-sm);
361
361
  border-radius: var(--border-radius);
362
362
  transition: all var(--transition-fast);
363
363
  position: relative;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-admin-ui",
3
- "version": "1.8.19",
4
- "gitHead": "9416f1ba55e2a0521d10a4ed592529a816a91c46",
3
+ "version": "1.8.21",
4
+ "gitHead": "b1db9861a3f9f50bd3cda8b2f934d4499b32039d",
5
5
  "private": false,
6
6
  "description": "Befly - 管理后台功能组件",
7
7
  "keywords": [