feat: Performance not show SAVE button done.

This commit is contained in:
chiayin
2024-02-22 10:42:40 +08:00
parent d18673acc8
commit f7c76fd1f7

View File

@@ -37,8 +37,8 @@
<UploadModal :visible="uploadModal" @closeModal="uploadModal = $event"></UploadModal>
</div>
</div>
<!-- Upload, Compare 無按鈕行為 -->
<div v-else-if="navViewName === 'UPLOAD' || navViewName === 'COMPARE'"></div>
<!-- Upload, Performance, Compare 無按鈕行為 -->
<div v-else-if="noShowSaveButton"></div>
<!-- Other Page: Save and Download -->
<!-- Save data 跳重新命名沒有 data 跳要不要儲存沒有動都不跳 -->
<div v-else class="space-x-4">
@@ -109,6 +109,9 @@ export default {
result = ['FILES', 'UPLOAD'].includes(this.navViewName) ? false : true;
return result;
},
noShowSaveButton: function() {
return this.navViewName === 'UPLOAD' || this.navViewName === 'COMPARE' || this.isActive === 'PERFORMANCE' ? true : false;
}
},
watch: {