lanxin 1 tháng trước cách đây
mục cha
commit
3dd57a08e7

+ 3 - 3
src/pages/A7collection/A7add/index.tsx

@@ -240,9 +240,9 @@ function A7add({ editInfo, closeFu, addTableFu, editTableFu }: Props) {
               defaultValue={0}
               placeholder='请选择类别'
               options={[
-                { label: '平面纸质类', value: 1 },
-                { label: '棉麻丝绸类', value: 2 },
-                { label: '专业器物类', value: 3 },
+                { label: '织绣', value: 1 },
+                { label: '铁器、其他金属器', value: 2 },
+                { label: '文物、宣传品', value: 3 },
                 { label: '其他', value: 4 }
               ]}
             />

+ 3 - 3
src/pages/A7collection/index.tsx

@@ -161,9 +161,9 @@ function A7collection() {
               defaultValue={0}
               options={[
                 { label: '全部', value: 0 },
-                { label: '平面纸质类', value: 1 },
-                { label: '棉麻丝绸类', value: 2 },
-                { label: '专业器物类', value: 3 },
+                { label: '织绣', value: 1 },
+                { label: '铁器、其他金属器', value: 2 },
+                { label: '文物、宣传品', value: 3 },
                 { label: '其他', value: 4 }
               ]}
               onChange={value => setType(value)}

+ 5 - 3
src/utils/http.ts

@@ -8,13 +8,15 @@ import { isLoginAPI } from '@/store/action/layout'
 
 const envFlag = process.env.NODE_ENV === 'development'
 
-const baseUrlTemp = 'https://sit-kelamayi.4dage.com' // 测试环境
-// const baseUrlTemp = 'http://192.168.20.61:8072' // 线下环境
+const baseUrlTemp2 = 'https://sit-kelamayi.4dage.com' // 测试环境
+// const baseUrlTemp1 = 'http://192.168.20.61:8072' // 开发环境
+const baseUrlTemp = window.location.origin
+console.log(baseUrlTemp)
 
 // const baseFlag = baseUrlTemp.includes('https://')
 
 // 请求基地址
-export const baseURL = envFlag ? baseUrlTemp : baseUrlTemp
+export const baseURL = envFlag ? baseUrlTemp : baseUrlTemp2
 
 // 处理  类型"AxiosResponse<any, any>"上不存在属性"code"
 declare module 'axios' {

+ 1 - 1
src/utils/tableData.ts

@@ -43,7 +43,7 @@ export const A6tableC = [
 
 export const A7tableC = [
   ['txt', '标题', 'title', 'titleB'],
-  ['txtChange', '类别', 'type', { 1: '平面纸质类', 2: '棉麻丝绸类', 3: '专业器物类', 4: '其他' }],
+  ['txtChange', '类别', 'type', { 1: '织绣', 2: '铁器、其他金属器', 3: '文物、宣传品', 4: '其他' }],
   ['txt', '级别', 'level', 'levelB'],
   ['txt', '质地', 'texture', 'textureB'],
   ['txt', '年代', 'era', 'eraB'],