From f56e474c81bb25845b46cf99c85bd313dbfcd3b5 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期六, 31 一月 2026 19:26:25 +0800
Subject: [PATCH] 项目初始化+首页+公告详情页面

---
 src/views/main/components/logout.vue |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/src/views/main/components/logout.vue b/src/views/main/components/logout.vue
new file mode 100644
index 0000000..a78430c
--- /dev/null
+++ b/src/views/main/components/logout.vue
@@ -0,0 +1,47 @@
+<template>
+  <el-dialog
+    v-model="dialogFlag"
+    title="鎻愮ず"
+    width="500"
+    align-center
+  >
+    <span>鏄惁閫�鍑虹櫥褰曪紵</span>
+    <template #footer>
+      <div class="dialog-footer">
+        <el-button @click="dialogFlag = false">鍙栨秷</el-button>
+        <el-button type="primary" @click="confirm()">
+          纭畾
+        </el-button>
+      </div>
+    </template>
+  </el-dialog>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      dialogFlag: false
+    }
+  },
+  props: {
+    modelValue: {
+      type: Boolean,
+      default: false
+    }
+  },
+  watch: {
+    modelValue(val) {
+      this.dialogFlag = val
+    },
+    dialogFlag(val) {
+      this.$emit('update:modelValue', val)
+    }
+  },
+  methods: {
+    confirm() {
+      this.dialogFlag = false
+      this.$router.push('/auth/login')
+    }
+  }
+}
+</script>
\ No newline at end of file

--
Gitblit v1.8.0