You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
320 B
TypeScript
18 lines
320 B
TypeScript
![]()
3 years ago
|
import { defineStore } from 'pinia';
|
||
|
import { IPositionCenter } from './types';
|
||
|
/**
|
||
|
* 配置文件
|
||
|
*/
|
||
|
export const useConfigStore = defineStore('config-store', {
|
||
|
state: (): IPositionCenter => {
|
||
|
return {
|
||
|
position_center: {
|
||
|
x: -50,
|
||
|
y: -50
|
||
|
}
|
||
|
};
|
||
|
},
|
||
|
getters: {},
|
||
|
actions: {}
|
||
|
});
|