open-index/open-npm huggingface dataset:
npm package: @nola/writter
Description: > We use `action` to Manage all of Operations\ > 我们决定使用 `action` 的方式进行业务操作管理
Latest version: 0.3.25

# Writter APIs -- 文档编辑器接口

> We use `action` to Manage all of Operations\
> 我们决定使用 `action` 的方式进行业务操作管理

> Default Namespcace is `nolaWritter`, registried by `vue-scaff`\
> 默认命名空间为 `nolaWritter`，于 `vue-scaff` 中注册

> The Command is `$store.dispatch('nolaWritter/{action}', {param})`\
> 执行命令为 `$store.dispatch('nolaWritter/{指令}', {参数})`

## save

```js
// Command
$store.dispatch('nolaWritter/save');

// Response
return { success };
```

## load

```js
// Command
$store.dispatch('nolaWritter/load', id);

// Response
return { context, setting };
```

## 111

## update

```js
// Command
$store.dispatch('nolaWritter/update', { index, material });

// Response
return { context };
```

## Add

```js
// Command
$store.dispatch('nolaWritter/add', { index, material });

// Response
return { context };
```

## Del

```js
// Command
$store.dispatch('nolaWritter/del', { index });

// Response
return { context };
```