mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 1.0 beta
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user