This commit is contained in:
2026-05-05 22:38:39 +08:00
parent 167b9adba6
commit 6b88d1cc40
4 changed files with 11 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ Router.prototype.push = function push(location) {
}; };
Vue.filter('fullPath', (path) => { Vue.filter('fullPath', (path) => {
if (typeof path === 'string' && path.trim()) { if (typeof path === 'string' && path.trim()) {
const baseUrl = 'http://95.40.65.4:8081'; const baseUrl = 'http://43.199.63.175:8081';
// 检查 path 是否以 http 或者 https 开头 // 检查 path 是否以 http 或者 https 开头
if (/^(http|https):\/\//i.test(path)) { if (/^(http|https):\/\//i.test(path)) {
return path.trim(); return path.trim();

View File

@@ -150,7 +150,7 @@ export default {
loginAvatar() { loginAvatar() {
const avatar = this.USER_INFO && this.USER_INFO.avatar; const avatar = this.USER_INFO && this.USER_INFO.avatar;
if (!avatar || !avatar.trim()) return this.defaultAvatar; if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://95.40.65.4:8081'; const baseUrl = 'http://43.199.63.175:8081';
const oldHost = 'http://154.12.94.229:8080'; const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim(); const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length); if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -201,7 +201,7 @@ export default {
if (!imgUrl) return ''; if (!imgUrl) return '';
const url = imgUrl.trim(); const url = imgUrl.trim();
if (/^(http|https):\/\//i.test(url)) return url; if (/^(http|https):\/\//i.test(url)) return url;
return 'http://95.40.65.4:8081' + url; return 'http://43.199.63.175:8081' + url;
}, },
playAudio() { playAudio() {
this.$store.commit("playAudio"); this.$store.commit("playAudio");
@@ -448,7 +448,7 @@ export default {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 10px; gap: 10px;
padding: 10px 12px 6px; padding: 50px 12px 6px;
flex-shrink: 0; flex-shrink: 0;
} }
.page_logout_btn { .page_logout_btn {

View File

@@ -192,7 +192,7 @@ export default {
loginAvatar() { loginAvatar() {
const avatar = this.USER_INFO && this.USER_INFO.avatar; const avatar = this.USER_INFO && this.USER_INFO.avatar;
if (!avatar || !avatar.trim()) return this.defaultAvatar; if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://95.40.65.4:8081'; const baseUrl = 'http://43.199.63.175:8081';
const oldHost = 'http://154.12.94.229:8080'; const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim(); const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length); if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -430,7 +430,7 @@ export default {
}, },
getAvatar(avatar) { getAvatar(avatar) {
if (!avatar || !avatar.trim()) return this.defaultAvatar; if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://95.40.65.4:8081'; const baseUrl = 'http://43.199.63.175:8081';
const oldHost = 'http://154.12.94.229:8080'; const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim(); const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length); if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -443,7 +443,7 @@ export default {
if (!imgUrl) return ''; if (!imgUrl) return '';
const url = imgUrl.trim(); const url = imgUrl.trim();
if (/^(http|https):\/\//i.test(url)) return url; if (/^(http|https):\/\//i.test(url)) return url;
return 'http://95.40.65.4:8081' + url; return 'http://43.199.63.175:8081' + url;
}, },
}, },
}; };
@@ -461,7 +461,7 @@ export default {
} }
.header_top { .header_top {
width: 100%; width: 100%;
padding: 8px 0; padding: 50px 0 8px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 6px;

View File

@@ -144,7 +144,7 @@ export default {
loginAvatar() { loginAvatar() {
const avatar = this.USER_INFO && this.USER_INFO.avatar; const avatar = this.USER_INFO && this.USER_INFO.avatar;
if (!avatar || !avatar.trim()) return this.defaultAvatar; if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://95.40.65.4:8081'; const baseUrl = 'http://43.199.63.175:8081';
const oldHost = 'http://154.12.94.229:8080'; const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim(); const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length); if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -537,7 +537,7 @@ export default {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 10px; gap: 10px;
padding: 10px 12px 6px; padding: 50px 12px 6px;
} }
.page_logout_btn { .page_logout_btn {
margin-left: auto; margin-left: auto;
@@ -577,7 +577,7 @@ export default {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 4px 12px 4px; padding: 4px 12px 12px;
} }
.page_title { .page_title {
font-size: 17px; font-size: 17px;