wangxy 3 月之前
父节点
当前提交
6ea78193e4
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      store/isCanBack.js

+ 12 - 0
store/isCanBack.js

@@ -0,0 +1,12 @@
+import { defineStore } from 'pinia';
+
+export const useIsCanBack = defineStore('isCanBack', {
+	state: () => {
+		return { isCanBack: true };
+	},
+	actions: {
+		setIsCanBack(val) {
+			this.isCanBack = val;
+		},
+	},
+});