Commit e481a2e7 authored by 何怡红's avatar 何怡红

测试获取用户信息

parent c2414f2e
...@@ -6,8 +6,8 @@ import Vconsole from 'vconsole'; ...@@ -6,8 +6,8 @@ import Vconsole from 'vconsole';
export function createApp() { export function createApp() {
const app = createSSRApp(App); const app = createSSRApp(App);
app.use(store); app.use(store);
// const vConsole = new Vconsole(); const vConsole = new Vconsole();
// app.use(vConsole); app.use(vConsole);
return { return {
app, app,
}; };
......
...@@ -158,6 +158,16 @@ const submitForm = () => { ...@@ -158,6 +158,16 @@ const submitForm = () => {
const goback = () => { const goback = () => {
show.value = true; show.value = true;
}; };
onLoad(() => {
xma.xh.getUserProfile({
range: ['ACCOUNT'],
success(info) {
// info.data:
// { uAvatar: '', uIdCardNo: '', uMobile: '', uName: '', uNickname: '', uid: '' }
console.log(info.data);
},
});
});
</script> </script>
<style lang="scss"> <style lang="scss">
.banner { .banner {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment