@xuekl/cli-components 1.3.2 → 1.3.4

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/XklDict.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-select style="width: 100%;">
3
- <el-option v-for="item in dataList" :key="item.dictCode" :label="item.dictLabel"
3
+ <el-option v-for="item in dataList" :key="item.dictValue" :label="item.dictLabel"
4
4
  :value="item.dictValue"></el-option>
5
5
  </el-select>
6
6
  </template>
@@ -20,13 +20,11 @@ const dataList: Ref<{ dictCode: string, dictLabel: string, dictValue: string | n
20
20
 
21
21
  onBeforeMount(() => {
22
22
  http({
23
- url: http.adornUrl(`${baseConfig.dict_api_url}/${config.dict}`),
23
+ url: http.adornUrl(`${baseConfig.dict_api_url}${config.dict}`),
24
24
  method: 'get',
25
25
  params: http.adornParams({})
26
26
  }).then(({ data }) => {
27
- if (data.code === 200) {
28
- dataList.value = data.data
29
- }
27
+ dataList.value = data.data
30
28
  })
31
29
  })
32
30
  </script>
package/XklTable.vue CHANGED
@@ -58,7 +58,7 @@ const XklTable = ref(null)
58
58
 
59
59
  dictTypes.forEach((dict: string) => {
60
60
  http({
61
- url: http.adornUrl(`${baseConfig.dict_api_url}/${dict}`),
61
+ url: http.adornUrl(`${baseConfig.dict_api_url}${dict}`),
62
62
  method: 'get',
63
63
  params: http.adornParams({})
64
64
  }).then(({ data }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuekl/cli-components",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {