浏览代码

fix somebug

tremble 2 年之前
父节点
当前提交
ce49660808

+ 1 - 0
packages/qjkankan-editor/src/components/materialSelectorForEditor.vue

@@ -527,6 +527,7 @@
       <button v-if="currentMaterialType !== '3D'" class="ui-button upload-btn" @click="onClickUpload">
         <span>上传素材</span>
         <i class="iconfont icon-material_prompt tool-tip-for-editor"
+        :key="currentMaterialType"
           v-tooltip="
             currentMaterialType === 'image' ? '请上传10MB以内、jpg/png格式的图片' :
             currentMaterialType === 'pano' ? '请上传2:1、120MB以内、jpg格式的图片' :

+ 1 - 1
packages/qjkankan-editor/src/components/materialSelectorForManageCenter.vue

@@ -204,7 +204,7 @@
     <div class="btns">
       <button v-if="currentMaterialType !== '3D'" class="ui-button upload-btn" @click="onClickUpload">
         <span>{{upload_material}}</span>
-        <i class="iconfont icon-material_prompt tool-tip-for-editor"
+        <i :key="currentMaterialType" class="iconfont icon-material_prompt tool-tip-for-editor"
           v-tooltip="
             currentMaterialType === 'image' ? img_size :
             currentMaterialType === 'pano' ? pano_size :