diff --git a/.env b/.env index c4ae906..fe3f0dd 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ -# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ -# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ +VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ +VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ -VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ -VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file +# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ +# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file diff --git a/README.md b/README.md index c35e212..d363fb5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ https://tdesign.tencent.com/ │ └─modules // 分modules ├─views // 视图 ├─App.vue // 项目根组件 - ├─main.js // 项目入口 + ├─main.js // 项目入口yarn └─style.scss // 全局样式 ``` diff --git a/publish.ps1 b/publish.ps1 new file mode 100644 index 0000000..ccf2df0 --- /dev/null +++ b/publish.ps1 @@ -0,0 +1,20 @@ +# build project +yarn build +# rename dist to current time, like 20221215121300 +$now = Get-Date -Format "yyyyMMddHHmmss" +Rename-Item -Path ./dist -NewName $now +# compress dist to app.zip +Compress-Archive -Path ./$now -DestinationPath ./app.zip -Force +# upload app.zip to server +scp app.zip root@192.168.8.10:/frontend/ +# unzip app.zip +ssh root:zwsd@192.168.8.10 "cd /frontend && unzip app.zip" +# remove old link +ssh root:zwsd@192.168.8.10 "cd /frontend && rm -f dist" +# create link +ssh root:zwsd@192.168.8.10 "cd /frontend && ln -s /frontend/$now /frontend/dist" +# remove app.zip +ssh root:zwsd@192.168.8.10 "cd /frontend && rm -f app.zip" +Remove-Item -Path ./app.zip +# remove folder +Remove-Item -Path ./$now -Recurse \ No newline at end of file diff --git a/src/components/Setting/components/History.vue b/src/components/Setting/components/History.vue index 1f6682b..f3b2b34 100644 --- a/src/components/Setting/components/History.vue +++ b/src/components/Setting/components/History.vue @@ -2,7 +2,14 @@
消毒名称
-操作
+
+
{{ item }}
-