update
This commit is contained in:
@@ -9,8 +9,10 @@ import XUpload from "../../components/XUpload.vue";
|
||||
import {reactive} from "vue";
|
||||
import {backPage, showToast} from "../../utils/uils.js";
|
||||
import {onLoad} from "@dcloudio/uni-app";
|
||||
import XDateRange from "../../components/XDateRange.vue";
|
||||
import XDateTime from "../../components/XDateTime.vue";
|
||||
import {useSystemStore} from "../../pinia/SystemStore/index.js";
|
||||
|
||||
const SystemStore = useSystemStore();
|
||||
|
||||
const form = reactive({
|
||||
status: null,
|
||||
@@ -43,11 +45,12 @@ const success = async () => {
|
||||
|
||||
onLoad((options) => {
|
||||
const {id} = options;
|
||||
Api.system.getAccountInfo(id).then(({data}) => {
|
||||
if (id) Api.system.getAccountInfo(id).then(({data}) => {
|
||||
data.homepage = [data.homepage];
|
||||
data.qrcode = [data.qrcode];
|
||||
Object.assign(form, data);
|
||||
});
|
||||
if (SystemStore.accountManagementPo.pid) form.pid = Number(SystemStore.accountManagementPo.pid);
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user