提交roll日创建

This commit is contained in:
2026-07-14 19:38:41 +08:00
parent 01444937bd
commit 65c290c973
8 changed files with 87 additions and 9 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ Router.prototype.push = function push(location) {
};
Vue.filter('fullPath', (path) => {
if (typeof path === 'string' && path.trim()) {
const baseUrl = 'http://43.199.63.175:8081';
const baseUrl = 'http://156.238.240.18:8081';
// 检查 path 是否以 http 或者 https 开头
if (/^(http|https):\/\//i.test(path)) {
return path.trim();
+2 -2
View File
@@ -150,7 +150,7 @@ export default {
loginAvatar() {
const avatar = this.USER_INFO && this.USER_INFO.avatar;
if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://43.199.63.175:8081';
const baseUrl = 'http://156.238.240.18:8081';
const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -201,7 +201,7 @@ export default {
if (!imgUrl) return '';
const url = imgUrl.trim();
if (/^(http|https):\/\//i.test(url)) return url;
return 'http://43.199.63.175:8081' + url;
return 'http://156.238.240.18:8081' + url;
},
playAudio() {
this.$store.commit("playAudio");
@@ -197,7 +197,7 @@ export default {
loginAvatar() {
const avatar = this.USER_INFO && this.USER_INFO.avatar;
if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://43.199.63.175:8081';
const baseUrl = 'http://156.238.240.18:8081';
const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -448,7 +448,7 @@ export default {
},
getAvatar(avatar) {
if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://43.199.63.175:8081';
const baseUrl = 'http://156.238.240.18:8081';
const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);
@@ -461,7 +461,7 @@ export default {
if (!imgUrl) return '';
const url = imgUrl.trim();
if (/^(http|https):\/\//i.test(url)) return url;
return 'http://43.199.63.175:8081' + url;
return 'http://156.238.240.18:8081' + url;
},
},
};
+1 -1
View File
@@ -145,7 +145,7 @@ export default {
loginAvatar() {
const avatar = this.USER_INFO && this.USER_INFO.avatar;
if (!avatar || !avatar.trim()) return this.defaultAvatar;
const baseUrl = 'http://43.199.63.175:8081';
const baseUrl = 'http://156.238.240.18:8081';
const oldHost = 'http://154.12.94.229:8080';
const trimmed = avatar.trim();
if (trimmed.startsWith(oldHost)) return baseUrl + trimmed.slice(oldHost.length);