fix: attribute type & option store

This commit is contained in:
puriphatt 2024-06-18 07:40:07 +00:00
parent 85cb72cb57
commit 3fca303b4e
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,12 @@
import { ref } from 'vue';
import { defineStore } from 'pinia';
const useOptionStore = defineStore('optionStore', () => {
const globalOption = ref();
return {
globalOption,
};
});
export default useOptionStore;

View file

@ -0,0 +1 @@
export type Option = { label: string; value: string };

View file

@ -42,8 +42,8 @@ export interface ServiceCreate {
export interface Attributes {
additional: {
filName: string;
type: AdditionalType;
fieldName: string;
type?: AdditionalType;
}[];
}