templateBase.js 554 B

12345678910111213141516171819202122
  1. import { defineStore } from "pinia";
  2. export const useTemplateBaseStore = defineStore("templateBase", {
  3. state: () => ({
  4. webSiteInfo: {},
  5. isSearch:false,
  6. webAdList:[],
  7. }),
  8. actions: {
  9. //网站基本信息
  10. setWebSiteInfo(webSiteInfo) {
  11. this.webSiteInfo = webSiteInfo
  12. },
  13. //是否启用搜索功能
  14. setIsSearch(bool){
  15. this.isSearch = bool
  16. },
  17. //广告列表
  18. setAdList(webAdList){
  19. this.webAdList = webAdList
  20. }
  21. }
  22. })