Просмотр исходного кода

feat(sfc-playground): prevent ctrl+s default behavior (#5066)

wxsm 4 лет назад
Родитель
Сommit
b0275070e4
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/sfc-playground/src/App.vue

+ 2 - 0
packages/sfc-playground/src/App.vue

@@ -31,6 +31,8 @@ watchEffect(() => history.replaceState({}, '', store.serialize()))
 <template>
 <template>
   <Header :store="store" />
   <Header :store="store" />
   <Repl
   <Repl
+    @keydown.ctrl.s.prevent
+    @keydown.meta.s.prevent
     :store="store"
     :store="store"
     :showCompileOutput="true"
     :showCompileOutput="true"
     :autoResize="true"
     :autoResize="true"