|
@@ -51,27 +51,24 @@
|
|
content: '',
|
|
content: '',
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
-
|
|
|
|
- methods: {
|
|
|
|
- async getUserManual() {
|
|
|
|
- const response = await service.get(
|
|
|
|
- '/api/public/v5/agreementApi/content/getContentByType',
|
|
|
|
- {
|
|
|
|
- params: {
|
|
|
|
- agreementCoding: 'XYPZYHXY2004',
|
|
|
|
- type: 1,
|
|
|
|
- },
|
|
|
|
|
|
+ methods: {},
|
|
|
|
+ mounted() {
|
|
|
|
+ service
|
|
|
|
+ .get('/api/public/v5/agreementApi/content/getContentByType', {
|
|
|
|
+ params: {
|
|
|
|
+ agreementCoding: 'XYPZYHXY2004',
|
|
|
|
+ type: 1,
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ .then(
|
|
|
|
+ (response) => {
|
|
|
|
+ this.title = response.data.agreementName;
|
|
|
|
+ this.content = response.data.content;
|
|
|
|
+ },
|
|
|
|
+ (error) => {
|
|
|
|
+ toastr.error(err.message);
|
|
},
|
|
},
|
|
);
|
|
);
|
|
- return response.data;
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- async mounted() {
|
|
|
|
- // throw new Error('失敬失敬');
|
|
|
|
- const { agreementName: title, content } = await this.getUserManual();
|
|
|
|
- this.title = title;
|
|
|
|
- this.content = content;
|
|
|
|
},
|
|
},
|
|
errorCaptured(err, vm, info) {
|
|
errorCaptured(err, vm, info) {
|
|
toastr.error(err.message);
|
|
toastr.error(err.message);
|