@befly-addon/admin 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@befly-addon/admin",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Befly - 管理后台功能组件",
5
5
  "type": "module",
6
6
  "private": false,
@@ -39,7 +39,7 @@
39
39
  "url": "https://github.com/chenbimo/befly.git",
40
40
  "directory": "packages/addon-admin"
41
41
  },
42
- "gitHead": "64fb7803b4ff57b2f1e5559cfd4fc428ebeb083e",
42
+ "gitHead": "94bb2938b4d9bc894182aaba2e407a80dd801cfe",
43
43
  "dependencies": {
44
44
  "befly": "3.8.12"
45
45
  }
@@ -13,6 +13,7 @@
13
13
  </template>
14
14
 
15
15
  <script setup>
16
+ import { useRouter } from 'vue-router';
16
17
  import { Button as TButton } from 'tdesign-vue-next';
17
18
 
18
19
  const router = useRouter();
@@ -115,13 +115,13 @@ const $Method = {
115
115
  onClose() {
116
116
  $Data.visible = false;
117
117
  setTimeout(() => {
118
- $Emit('up:modelValue', false);
118
+ $Emit('update:modelValue', false);
119
119
  }, 300);
120
120
  },
121
121
 
122
122
  async onSubmit() {
123
123
  try {
124
- const valid = await date$From.form.validate();
124
+ const valid = await $From.form.validate();
125
125
  if (!valid) return;
126
126
 
127
127
  const res = await $Http($Prop.actionType === 'upd' ? '/addon/admin/admin/upd' : '/addon/admin/admin/ins', $Data.formData);
@@ -25,6 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script setup>
28
+ import { useRouter } from 'vue-router';
28
29
  import { Form as TForm, FormItem as TFormItem, Input as TInput, Button as TButton, MessagePlugin } from 'tdesign-vue-next';
29
30
  import ILucideUser from '~icons/lucide/user';
30
31
  import ILucideLock from '~icons/lucide/lock';