ahjung před 2 roky
rodič
revize
83c555907c

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "naive-admin-element-tenant",
-  "version": "1.3.6",
+  "version": "1.3.7",
   "author": {
     "name": "Ahjung",
     "email": "735878602@qq.com",

+ 3 - 3
src/api/select/select.ts

@@ -1,9 +1,9 @@
 import { http } from '@/utils/http/axios';
 
-//获取分类
-export function getClassifyList(params?) {
+//获取省份/直辖市
+export function getProvinceList(params?) {
   return http.request({
-    url: '/classifyList',
+    url: '/region/queryProvinceList',
     method: 'get',
     params,
   });

+ 1 - 1
src/router/modules/comp.ts

@@ -160,7 +160,7 @@ const routes: Array<RouteRecordRaw> = [
         meta: {
           title: '选择器',
         },
-        component: () => import('@/views/comp/select/select.vue'),
+        component: () => import('@/views/comp/select/BasicSelect.vue'),
       },
       {
         path: 'tableselect',

+ 2 - 2
src/views/comp/form/basic.vue

@@ -26,7 +26,7 @@
 <script lang="ts" setup>
   import { BasicForm, FormSchema } from '@/components/Form/index';
   import { ElMessage } from 'element-plus';
-  import { getClassifyList } from '@/api/select/select';
+  import { getProvinceList } from '@/api/select/select';
 
   const params = {
     type: 1,
@@ -34,7 +34,7 @@
 
   async function loadSelectData(res) {
     //这里可以进行数据转换处理
-    return (await getClassifyList({ ...res, ...params })).map((item, index) => {
+    return (await getProvinceList({ ...res, ...params })).map((item, index) => {
       return {
         ...item,
         index,