-
帮助文档
+
+
+
+
+
+
+
+
+ 设置
+ 新
-
-
+
+
+
+
+ 帮助文档
+
+
+
diff --git a/ui/src/components/FloatButton.vue b/ui/src/components/FloatButton.vue
index de0ff86..c16fd80 100644
--- a/ui/src/components/FloatButton.vue
+++ b/ui/src/components/FloatButton.vue
@@ -1,6 +1,7 @@
diff --git a/ui/src/main.js b/ui/src/main.js
index 132098e..647f8a5 100644
--- a/ui/src/main.js
+++ b/ui/src/main.js
@@ -1,4 +1,3 @@
-import 'vfonts/Lato.css'
import 'vfonts/FiraCode.css'
import './styles/global.css'
diff --git a/ui/src/pages/Fix.vue b/ui/src/pages/Fix.vue
index 50190e8..45de0a4 100644
--- a/ui/src/pages/Fix.vue
+++ b/ui/src/pages/Fix.vue
@@ -1,26 +1,15 @@
diff --git a/ui/src/pages/Launch.vue b/ui/src/pages/Launch.vue
index 7300528..2372301 100644
--- a/ui/src/pages/Launch.vue
+++ b/ui/src/pages/Launch.vue
@@ -12,8 +12,7 @@ import {
Stop,
Search
} from '@vicons/ionicons5'
-
-const notification = useNotification()
+import { notify } from '@/utils/naiveDiscrete.js'
const config_store = useConfigStore()
const conf = config_store.config
@@ -90,17 +89,9 @@ async function handle_migrate(key) {
name: '默认实例',
path: response.data
})
- notification['success']({
- content: '信息',
- meta: response.message,
- duration: 3000
- })
+ notify.success(response.message)
} else {
- notification['error']({
- content: '错误',
- meta: response.message,
- duration: 3000
- })
+ notify.error(response.message)
}
} else {
const response = await pywebview.api.migrate_instances_config()
@@ -110,17 +101,9 @@ async function handle_migrate(key) {
conf.instances = [...config_store.config.instances]
}
if (response.status) {
- notification['info']({
- title: '信息',
- content: response.message,
- duration: 3000
- })
+ notify.info(response.message)
} else {
- notification['error']({
- title: '错误',
- content: response.message,
- duration: 3000
- })
+ notify.error(response.message)
}
}
}
@@ -175,8 +158,8 @@ async function handle_migrate(key) {
显示日志
-