mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-06-29 01:49:20 +08:00
refactor: 优化模板代码
This commit is contained in:
parent
06134f03bb
commit
5d6320affe
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<MicroApp :name="name" :base="base" :masterHistoryType="masterHistoryType" :cacheName="cacheName"> </MicroApp>
|
||||
<MicroApp name="{{{microAppName}}}" base="{{{base}}}" masterHistoryType="{{{masterHistoryType}}}" cacheName="{{{cacheName}}}"> </MicroApp>
|
||||
</template>
|
||||
<script>
|
||||
// eslint-disable-next-line import/extensions
|
||||
@ -7,18 +7,5 @@ import { MicroApp } from './MicroApp';
|
||||
|
||||
export default {
|
||||
components: { MicroApp },
|
||||
setup() {
|
||||
const name = '{{{microAppName}}}';
|
||||
const base = '{{{base}}}';
|
||||
const masterHistoryType = '{{{masterHistoryType}}}';
|
||||
const cacheName = '{{{cacheName}}}';
|
||||
|
||||
return {
|
||||
name,
|
||||
base,
|
||||
masterHistoryType,
|
||||
cacheName,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user