소스 검색

feat: 保存

gemercheung 1 년 전
부모
커밋
f9f7481aac
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      packages/qjkankan-editor/src/views/mask/setting.vue
  2. 3 1
      packages/qjkankan-editor/src/views/screen/Setting.vue

+ 4 - 0
packages/qjkankan-editor/src/views/mask/setting.vue

@@ -234,6 +234,8 @@ export default {
             content: this.$i18n.t("mask.is_apply_to_all_pano"),
             ok: () => {
               this.$store.dispatch("scene/applycustomMaskToAll", "sky");
+              this.$msg.success(this.$i18n.t("gather.edit_success"));
+              setTimeout(() => (this.isApplySkyToAll = false), 1000);
             },
             no: () => {
               this.isApplySkyToAll = false;
@@ -250,6 +252,8 @@ export default {
             content: this.$i18n.t("mask.is_apply_to_all_pano"),
             ok: () => {
               this.$store.dispatch("scene/applycustomMaskToAll", "earth");
+              this.$msg.success(this.$i18n.t("gather.edit_success"));
+              setTimeout(() => (this.isApplySkyToAll = false), 1000);
             },
             no: () => {
               this.isApplyEarthToAll = false;

+ 3 - 1
packages/qjkankan-editor/src/views/screen/Setting.vue

@@ -32,7 +32,7 @@
           :height="6"
           :width="`95%`"
           :marks="marks"
-          direction="rtl"
+          direction="ltr"
           :processStyle="{
             backgroundColor: '#409eff',
           }"
@@ -154,6 +154,8 @@ export default {
                 hlookat,
               });
               this.updateCurrentScene();
+              this.$msg.success(this.$i18n.t("gather.edit_success"));
+              setTimeout(() => (this.isApplySkyToAll = false), 1000);
             },
             no: () => {
               this.applyToAll = false;