ソースを参照

下载文件类型限制

OnePsycho 3 年 前
コミット
8b55fcc92e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      TEAMModelOS/ClientApp/src/view/syllabus/Syllabus.vue

+ 1 - 1
TEAMModelOS/ClientApp/src/view/syllabus/Syllabus.vue

@@ -137,7 +137,7 @@
               <img src="../../assets/source/unknow.png" v-else="item.type === 'other'" />
               <span v-html="item.title" class="text-cut" style="max-width: 70%;cursor: pointer;"></span>
               <div class="node-resource-tools">
-                <div class="node-resource-tool" @click.stop="onDownload(item,index)">
+                <div class="node-resource-tool" @click.stop="onDownload(item,index)" v-if="['video','audio','doc','thum','other','image'].includes(item.type)">
 					<Icon type="md-download" />
 					<span>下载</span>
 				</div>