From c2026d0a7b42f517b5368db147ab9e103a9d2c8c Mon Sep 17 00:00:00 2001 From: fanfpy Date: Sat, 21 Jun 2025 16:37:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=89=8D?= =?UTF-8?q?=E7=AB=AFVue=E5=BA=94=E7=94=A8=E5=92=8CConsul=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加前端Vue应用基础结构和Consul服务配置 --- consul/config/consul.hcl | 5 +++++ services/frontend/src/App.vue | 23 +++++++++++++++++++++++ services/frontend/src/main.js | 4 ++++ 3 files changed, 32 insertions(+) create mode 100644 services/frontend/src/App.vue create mode 100644 services/frontend/src/main.js diff --git a/consul/config/consul.hcl b/consul/config/consul.hcl index e69de29..d16b9e5 100644 --- a/consul/config/consul.hcl +++ b/consul/config/consul.hcl @@ -0,0 +1,5 @@ +datacenter = "dc1" +data_dir = "/consul/data" +server = true +bootstrap_expect = 1 +ui = true \ No newline at end of file diff --git a/services/frontend/src/App.vue b/services/frontend/src/App.vue new file mode 100644 index 0000000..536df01 --- /dev/null +++ b/services/frontend/src/App.vue @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/services/frontend/src/main.js b/services/frontend/src/main.js new file mode 100644 index 0000000..58cdcf4 --- /dev/null +++ b/services/frontend/src/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') \ No newline at end of file