From f56e474c81bb25845b46cf99c85bd313dbfcd3b5 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期六, 31 一月 2026 19:26:25 +0800
Subject: [PATCH] 项目初始化+首页+公告详情页面
---
src/stores/optionItems.js | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/stores/optionItems.js b/src/stores/optionItems.js
new file mode 100644
index 0000000..b928cbc
--- /dev/null
+++ b/src/stores/optionItems.js
@@ -0,0 +1,15 @@
+import { ref } from 'vue'
+import { defineStore } from 'pinia'
+export const useOptionItemsStore = defineStore('optionItems', () => {
+ const cityItems = ref([])
+ const occupationItems = ref([])
+
+ function setCityItems(data) {
+ cityItems.value = data
+ }
+ function setOccupationItems(data) {
+ occupationItems.value = data
+ }
+
+ return { cityItems, setCityItems, occupationItems, setOccupationItems }
+})
--
Gitblit v1.8.0