@@ -67,7 +67,6 @@ function loadStores() {
6767 })
6868}
6969loadStores ()
70- Magic .Keys (loadStores , [' Alt+KeyR' ])
7170
7271function deleteStore(name : string ) {
7372 API .DeleteStore (name , () => {
@@ -108,7 +107,14 @@ function addStore() {
108107 dialogVisible .value = true
109108 createAction .value = true
110109}
111- Magic .Keys (addStore , [' Alt+KeyN' ])
110+
111+ Magic .AdvancedKeys ([{
112+ Keys: [' Alt+KeyE' , ' ctrl+n' ],
113+ Func: addStore
114+ }, {
115+ Keys: [' Alt+KeyR' ],
116+ Func: loadStores
117+ }])
112118
113119const rules = reactive <FormRules <Store >>({
114120 name: [{ required: true , message: ' Name is required' , trigger: ' blur' }],
@@ -211,10 +217,10 @@ const storeExtLink = ref('')
211217 </script >
212218
213219<template >
214- <div >Store Manager</ div >
215- < div >
216- <Button type =" primary" @click =" addStore" :icon =" Edit" >{{t('button.new')}}</Button >
217- <Button type =" primary" @click =" loadStores" :icon =" Refresh" >{{t('button.refresh')}}</Button >
220+ <div class = " page-header " >
221+ < span class = " page-title " >{{t('title.storeManager')}}</ span >
222+ <Button type =" primary" @click =" addStore" :icon =" Edit" >{{t('button.new')}}</Button >
223+ <Button type =" primary" @click =" loadStores" :icon =" Refresh" >{{t('button.refresh')}}</Button >
218224 </div >
219225 <el-table :data =" stores" style =" width : 100% " v-loading =storesLoading >
220226 <el-table-column :label =" t('field.name')" width =" 180" >
0 commit comments