feat(projects): 1.0 beta

This commit is contained in:
Soybean
2023-11-17 08:45:00 +08:00
parent 1ea4817f6a
commit e918a2c0f5
499 changed files with 15918 additions and 24708 deletions

View File

@ -1,13 +1,13 @@
import type { PiniaPluginContext } from 'pinia';
import { cloneDeep } from 'lodash-es';
import { SetupStoreId } from '@/enum';
/**
* setup语法的重置状态插件
* the plugin reset the state of the store which is written by setup syntax
* @param context
* @description 请将用setup语法的状态id写入到setupSyntaxIds
*/
export function resetSetupStore(context: PiniaPluginContext) {
const setupSyntaxIds = ['setup-store'];
const setupSyntaxIds = Object.values(SetupStoreId) as string[];
if (setupSyntaxIds.includes(context.store.$id)) {
const { $state } = context.store;