瀏覽代碼

fix: 安装包下载路径问题

zhangjie 1 月之前
父節點
當前提交
4272397d37
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/course/components/CourseDocumentDetail.vue

+ 2 - 2
src/modules/course/components/CourseDocumentDetail.vue

@@ -272,8 +272,8 @@ export default {
   methods: {
     async getToolInfo() {
       const res = await toolInfo();
-      const info = res.install || {};
-      this.toolUrl = info.url || "";
+      const info = res || {};
+      this.toolUrl = info.prefix ? `${info.prefix}/${info.install.url}` : "";
     },
     cancel() {
       this.modalIsShow = false;