|
@@ -79,7 +79,7 @@
|
|
|
:footer="null"
|
|
:footer="null"
|
|
|
width="890px"
|
|
width="890px"
|
|
|
>
|
|
>
|
|
|
- <p class="agreement-content">{{ selectedAgreement.agreementcontent }}</p>
|
|
|
|
|
|
|
+ <div class="agreement-content" v-html="formateWord(selectedAgreement.agreementcontent)"></div>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -142,6 +142,9 @@ function useAgreement() {
|
|
|
const closeModel = () => {
|
|
const closeModel = () => {
|
|
|
visible.value = false
|
|
visible.value = false
|
|
|
}
|
|
}
|
|
|
|
|
+ const formateWord = (val: string) => {
|
|
|
|
|
+ return val.replace(/\n/g, '<br>')
|
|
|
|
|
+ }
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
queryUserNodeCfgAndStatus({ nodetype: '2', agreementtype: 2 }).then(res => {
|
|
queryUserNodeCfgAndStatus({ nodetype: '2', agreementtype: 2 }).then(res => {
|
|
|
if (Array.isArray(res)) {
|
|
if (Array.isArray(res)) {
|
|
@@ -150,7 +153,7 @@ function useAgreement() {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
- return { agreementList, showModal, selectedAgreement, visible, closeModel }
|
|
|
|
|
|
|
+ return { agreementList, showModal, selectedAgreement, visible, closeModel, formateWord }
|
|
|
}
|
|
}
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'login',
|
|
name: 'login',
|