file upload and export

This commit is contained in:
cxc
2022-07-28 11:18:53 +08:00
parent 6f4a650962
commit 5983e1e31b
11 changed files with 282 additions and 119 deletions

View File

@ -1,4 +1,5 @@
import { defineStore } from "pinia";
import { tenantSelect } from "@/api/subPlatform/tenant";
const useDataStore = defineStore("data", {
state: () => ({
@ -11,8 +12,12 @@ const useDataStore = defineStore("data", {
},
},
actions: {
setSiteList(list) {
this.siteList = list;
async setSiteList(list) {
if (this.siteList.length !== 0) {
return;
}
const { rows } = await tenantSelect();
this.siteList = rows;
},
},
});