diff --git a/README.md b/README.md index 64ef6a2..2bfe156 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# 允斯调试器的内嵌网页版上位机 \ No newline at end of file +# 允斯无线透传器的内嵌网页版上位机 + + diff --git a/set_env.sh b/set_env.sh index 7c2198e..bf8f818 100755 --- a/set_env.sh +++ b/set_env.sh @@ -1,3 +1,3 @@ #!/bin/bash -export VITE_APP_GIT_TAG=$(git describe --tags) +export VITE_APP_GIT_TAG=$(git describe --tags | cut -d'-' -f1,2) export VITE_APP_LAST_COMMIT=$(git log -1 --format=%cd) \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 6a01979..746b801 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,7 +40,7 @@ onMounted(() => { logHelloMessage(); let host = ""; if (isDevMode()) { - host = import.meta.env.VITE_DEVICE_HOST_NAME; + host = import.meta.env.VITE_DEVICE_HOST_NAME || "dap.local"; } else { host = window.location.host } @@ -55,8 +55,10 @@ onUnmounted(() => { diff --git a/src/views/About.vue b/src/views/About.vue index 5bbf039..1b1d149 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -1,6 +1,6 @@