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.
- package/layouts/default.vue +5 -5
- package/package.json +2 -2
package/layouts/default.vue
CHANGED
|
@@ -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>{{
|
|
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="
|
|
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