templateBase.js 423 B

1234567891011121314151617
  1. import { defineStore } from "pinia";
  2. export const useTemplateBaseStore = defineStore("templateBase", {
  3. state: () => ({
  4. webSiteInfo: {},
  5. webAdList:[]
  6. }),
  7. actions: {
  8. //网站基本信息
  9. setWebSiteInfo(webSiteInfo) {
  10. this.webSiteInfo = webSiteInfo
  11. },
  12. //广告列表
  13. setAdList(webAdList){
  14. this.webAdList = webAdList
  15. }
  16. }
  17. })