befly-admin-ui 1.8.20 → 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 +4 -3
- 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";
|
package/package.json
CHANGED