mirror of
https://github.com/EasyTier/EasytierGame.git
synced 2026-10-21 04:47:44 +00:00
#Update 更新包体版本,优化日志代码
This commit is contained in:
+4
-4
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@element-plus/icons-vue": "^2.3.1",
|
||||
"@element-plus/nuxt": "1.1.3",
|
||||
"@element-plus/nuxt": "1.1.4",
|
||||
"@nuxtjs/tailwindcss": "6.13.2",
|
||||
"@pinia/nuxt": "0.11.1",
|
||||
"@tauri-apps/api": "2.7.0",
|
||||
@@ -25,13 +25,13 @@
|
||||
"@tauri-apps/plugin-shell": "2.3.0",
|
||||
"@tauri-apps/plugin-window-state": "2.4.0",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@vitejs/plugin-vue-jsx": "4.1.2",
|
||||
"@vitejs/plugin-vue-jsx": "5.0.1",
|
||||
"@vueuse/core": "12.7.0",
|
||||
"archiver": "^7.0.1",
|
||||
"element-plus": "2.10.4",
|
||||
"element-plus": "2.10.7",
|
||||
"less": "4.2.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
"nuxt": "3.17.7",
|
||||
"nuxt": "3.18.1",
|
||||
"pinia": "3.0.3",
|
||||
"pinia-plugin-persistedstate": "4.4.1",
|
||||
"postcss": "^8.4.38",
|
||||
|
||||
+7
-8
@@ -12,14 +12,11 @@
|
||||
@scroll="handleScroll"
|
||||
class="overflow-auto"
|
||||
>
|
||||
<div v-if="!data.log || data.log.length <= 0">
|
||||
<ElAlert
|
||||
type="info"
|
||||
title="等待日志中,请先'启动联机'..."
|
||||
:closable="false"
|
||||
/>
|
||||
<div v-if="!data.log || data.log.length <= 0" class="p-[5px]">
|
||||
<ElText type="info">等待日志中,请先'启动联机'...</ElText>
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
v-for="item in data.log"
|
||||
:key="item.id"
|
||||
class="p-[5px]"
|
||||
@@ -102,8 +99,10 @@
|
||||
|
||||
const listenStart = async () => {
|
||||
const unListen = await listen<string>("logs", async event => {
|
||||
data.originLog = event.payload || "";
|
||||
data.log = (event.payload || "")
|
||||
const payload = event.payload || "";
|
||||
if (data.originLog === payload) return;
|
||||
data.originLog = payload;
|
||||
data.log = payload
|
||||
.split("\n")
|
||||
.filter(text => text.trim())
|
||||
.map((text, idx) => {
|
||||
|
||||
Generated
+1659
-689
File diff suppressed because it is too large
Load Diff
Generated
+232
-242
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user