|
|
@@ -183,7 +183,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { useAppStore } from '@/store/app'
|
|
|
+// import { useAppStore } from '@/store/app'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
import { useToast } from 'wot-design-uni'
|
|
|
|
|
|
@@ -241,8 +241,9 @@ const model = reactive({
|
|
|
userszcd: '',
|
|
|
userscz: '',
|
|
|
usersbz: '',
|
|
|
+ usersid: '',
|
|
|
})
|
|
|
-const appStore = useAppStore()
|
|
|
+// const appStore = useAppStore()
|
|
|
const userStore = useUserStore()
|
|
|
const toast = useToast()
|
|
|
// 用户类型
|
|
|
@@ -268,9 +269,9 @@ function handleSubmit() {
|
|
|
.then(async ({ valid, errors }) => {
|
|
|
if (valid) {
|
|
|
submitLoading.value = true
|
|
|
- const userid = appStore.appInfo.userid
|
|
|
+ // const userid = appStore.appInfo.userid
|
|
|
const res = await userStore.updateUser({
|
|
|
- usersid: userid,
|
|
|
+ usersid: model.usersid,
|
|
|
...model,
|
|
|
})
|
|
|
|
|
|
@@ -334,6 +335,7 @@ const getUserDetail = async () => {
|
|
|
model.userszcd = Data.userszcd
|
|
|
model.userscz = Data.userscz
|
|
|
model.usersbz = Data.usersbz
|
|
|
+ model.usersid = Data.usersid
|
|
|
}
|
|
|
}
|
|
|
|