feat: 动态替换图片
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ossChengduUrl } from "@/request/base/baseUrl";
|
||||
|
||||
const props = defineProps({
|
||||
hasMessage: {
|
||||
@@ -25,7 +26,7 @@ const props = defineProps({
|
||||
// 图片路径
|
||||
imageSrc: {
|
||||
type: String,
|
||||
default: '/static/come_chat_image.png'
|
||||
default: `${ossChengduUrl()}come_chat_image.png`
|
||||
},
|
||||
// 主标题
|
||||
mainTitle: {
|
||||
|
||||
@@ -10,3 +10,10 @@ export const devUrl = "https://onefeel.brother7.cn/ingress";
|
||||
/// 测试服务器wss地址
|
||||
export const wssDevUrl = "wss://onefeel.brother7.cn/ingress/agent/ws/chat";
|
||||
|
||||
|
||||
/// 服务器基础地址 - 根据环境变量自动切换
|
||||
import { currentClientType } from "@/constant/base";
|
||||
export const ossChengduUrl = () => {
|
||||
const clientType = currentClientType().toLowerCase();
|
||||
return "https://one-feel-config-images-bucket.oss-cn-chengdu.aliyuncs.com/" + clientType + "/"
|
||||
};
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user