feat: processing 검색 켬/끔 추가
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ItemTypeKey } from "@/defs";
|
||||
import { combineArray } from "@/util/combineArray";
|
||||
import { Ref, ref, watch } from "vue";
|
||||
|
||||
export type procGeneralItem = {
|
||||
no: number,
|
||||
@@ -95,4 +96,16 @@ export type procItemType = {
|
||||
export type procItemList = Record<ItemTypeKey, {
|
||||
typeName: string,
|
||||
values: procItemType[],
|
||||
}>
|
||||
}>
|
||||
|
||||
|
||||
//XXX: vuex 쓰기 전까지...
|
||||
export const searchableProcessingMode = 'sam.processing.searchable';
|
||||
const searchable = ref((localStorage.getItem(searchableProcessingMode) ?? "0") != "0");
|
||||
watch(searchable, (val) => {
|
||||
localStorage.setItem(searchableProcessingMode, val ? "1" : "0");
|
||||
});
|
||||
|
||||
export function getProcSearchable():Ref<boolean>{
|
||||
return searchable;
|
||||
}
|
||||
Reference in New Issue
Block a user