Sfoglia il codice sorgente

fix: 优化互动视频管理列表预览功能

mnisting 2 mesi fa
parent
commit
18db45a3ac
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 1 0
      src/views/interactVideo/videoManage/index.vue
  2. 2 1
      vite.config.js

+ 1 - 0
src/views/interactVideo/videoManage/index.vue

@@ -200,6 +200,7 @@ function handleView(row) {
   // 获取互动视频基本信息以及节点
   getInteractionVideoDetail(row.interactionId).then((res) => {
     if (res.code == 200) {
+      if(!res.data.rootNode) return proxy.$modal.msgError("暂无可播放视频,可添加视频素材后预览");
       graphData.value = transfromReturnGraphdata(res.data.rootNode);
       videoDetail.value = graphData.value;
       if (!videoDetail.value.data.uri) {

+ 2 - 1
vite.config.js

@@ -31,7 +31,8 @@ export default defineConfig(({ mode, command }) => {
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         "/dev-api": {
-          target: "http://172.16.8.42:8080",
+          // target: "http://172.16.8.42:8080",
+          target: "http://172.16.10.187:8090",
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, ""),
         },