n20-common-lib 2.11.6 → 2.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.11.6",
3
+ "version": "2.11.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -3,6 +3,7 @@
3
3
  <div class="flex-box flex-v flex-lr m-b-s">
4
4
  <div>
5
5
  <slot name="title"></slot>
6
+ <span v-if="fileText" v-html="fileText"></span>
6
7
  </div>
7
8
  <div>
8
9
  <slot v-if="!readonly" name="add-btn">
@@ -273,6 +274,7 @@
273
274
  </template>
274
275
 
275
276
  <script>
277
+ import getJsonc from '../../assets/getJsonc.js'
276
278
  import _axios from 'axios'
277
279
  import dayjs from 'dayjs'
278
280
  import XEUtils from 'xe-utils'
@@ -421,6 +423,7 @@ export default {
421
423
  }
422
424
 
423
425
  return {
426
+ fileText: '',
424
427
  bathType: '',
425
428
  indexK: '$index',
426
429
  imgType: /\.(jpg|png|gif|svg)$/i,
@@ -459,7 +462,19 @@ export default {
459
462
  return this.dataPorp.multiple ?? true
460
463
  }
461
464
  },
465
+ mounted() {
466
+ this.getConfiguration()
467
+ },
462
468
  methods: {
469
+ getConfiguration() {
470
+ getJsonc('portal/server-config.jsonc', null, true)
471
+ .then(({ loginConf }) => {
472
+ this.fileText = loginConf?.sLogan?.fileText
473
+ })
474
+ .catch(() => {
475
+ this.fileText = ''
476
+ })
477
+ },
463
478
  async getOfficeStatus() {
464
479
  const { data } = await this.$axios.get(
465
480
  this.apiPrefix