file upload and export
This commit is contained in:
@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user