test: E2E-conformance save log and filter done.
This commit is contained in:
@@ -51,7 +51,7 @@ import AllMapDataStore from '@/stores/allMapData.js';
|
||||
import ConformanceStore from '@/stores/conformance.js';
|
||||
import IconSearch from '@/components/icons/IconSearch.vue';
|
||||
import IconSetting from '@/components/icons/IconSetting.vue';
|
||||
import { saveFilter, savedSuccessfully } from '@/module/alertModal.js';
|
||||
import { saveFilter, savedSuccessfully, saveConformance } from '@/module/alertModal.js';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
@@ -190,7 +190,7 @@ export default {
|
||||
await this.conformanceStore.updataConformance();
|
||||
if(this.isUpdataConformance) await savedSuccessfully(this.conformanceFileName);
|
||||
} else {
|
||||
await saveFilter(this.conformanceStore.addConformanceCreateCheckId);
|
||||
await saveConformance(this.conformanceStore.addConformanceCreateCheckId);
|
||||
// 存檔後為 checkID,換網址不跳頁,使用 push 記錄歷史路由
|
||||
if(this.conformanceLogId) await this.$router.push(`/rule/log/${this.conformanceLogCreateCheckId}/conformance/${this.conformanceLogId}`);
|
||||
else if(this.conformanceFilterId) await this.$router.push(`/rule/filter/${this.conformanceFilterCreateCheckId}/conformance/${this.conformanceFilterId}`);
|
||||
|
||||
Reference in New Issue
Block a user