mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-15 03:32:11 +08:00
21 lines
362 B
Vue
21 lines
362 B
Vue
<template>
|
|
<div class="user-center">{{initialState.userName}}</div>
|
|
</template>
|
|
<script>
|
|
import { useModel } from '@fesjs/fes';
|
|
|
|
export default {
|
|
setup() {
|
|
const initialState = useModel('@@initialState');
|
|
return {
|
|
initialState
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
<style lang="less">
|
|
.user-center {
|
|
text-align: right;
|
|
}
|
|
</style>
|