fix: attribute type & option store
This commit is contained in:
parent
85cb72cb57
commit
3fca303b4e
3 changed files with 15 additions and 2 deletions
12
src/stores/options/index.ts
Normal file
12
src/stores/options/index.ts
Normal 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;
|
||||||
1
src/stores/options/types.ts
Normal file
1
src/stores/options/types.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export type Option = { label: string; value: string };
|
||||||
|
|
@ -42,8 +42,8 @@ export interface ServiceCreate {
|
||||||
|
|
||||||
export interface Attributes {
|
export interface Attributes {
|
||||||
additional: {
|
additional: {
|
||||||
filName: string;
|
fieldName: string;
|
||||||
type: AdditionalType;
|
type?: AdditionalType;
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue