|
@@ -113,23 +113,24 @@
|
|
|
},
|
|
|
})
|
|
|
.then(
|
|
|
- (response) => {
|
|
|
+ (response)=> {
|
|
|
this.title = response.data.agreementName;
|
|
|
+ this.content = response.data.content;
|
|
|
|
|
|
- const html = document.createElement('html');
|
|
|
+ // const html = document.createElement('html');
|
|
|
|
|
|
- html.innerHTML = response.data.content;
|
|
|
+ // html.innerHTML = response.data.content;
|
|
|
|
|
|
- const phoneContainers =
|
|
|
- html.querySelectorAll('.phone-container');
|
|
|
+ // const phoneContainers =
|
|
|
+ // html.querySelectorAll('.phone-container');
|
|
|
|
|
|
- if (phoneContainers.length > 0) {
|
|
|
- this.content = phoneContainers.item(
|
|
|
- phoneContainers.length - 1,
|
|
|
- ).innerHTML;
|
|
|
- } else {
|
|
|
- this.content = response.data.content;
|
|
|
- }
|
|
|
+ // if (phoneContainers.length > 0) {
|
|
|
+ // this.content = phoneContainers.item(
|
|
|
+ // phoneContainers.length - 1,
|
|
|
+ // ).innerHTML;
|
|
|
+ // } else {
|
|
|
+ // this.content = response.data.content;
|
|
|
+ // }
|
|
|
},
|
|
|
(error) => {
|
|
|
toastr.error(err.message);
|