张延森 4 anos atrás
pai
commit
530fd674a0

+ 3
- 2
src/pages/property/message/event/components/Preview.jsx Ver arquivo

@@ -2,11 +2,12 @@ import React, { useEffect, useState } from 'react'
2 2
 import moment from 'moment'
3 3
 import { Modal } from 'antd'
4 4
 import Styles from './style.less'
5
+import { APIBaseURL } from '@/utils/constant'
5 6
 
6 7
 export default props => {
7 8
   const baseURL = props.dataSource.evtType === 'birthday'
8
-    ? 'https://xs.ycjcjy.com/shengrih5.html'
9
-    : 'https://xs.ycjcjy.com/jierih5.html'
9
+    ? `${APIBaseURL}shengrih5.html`
10
+    : `${APIBaseURL}jierih5.html`
10 11
 
11 12
   const queryString = [
12 13
     `name=${encodeURIComponent(' 张xx (先生)')}`,

+ 1
- 1
src/utils/constant.js Ver arquivo

@@ -1,4 +1,4 @@
1 1
 
2
-export const APIBaseURL = process.env.NODE_ENV === 'production' ? 'https://xs.ycjcjy.com/' : '/'
2
+export const APIBaseURL = process.env.NODE_ENV === 'production' ? 'https://xs.njyunzhi.com/' : '/'
3 3
 
4 4
 export const AMapAPIPrefix = `${APIBaseURL}gaode_amap`