1
This commit is contained in:
@@ -150,17 +150,6 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
define: {
|
|
||||||
'process.env': {
|
|
||||||
API_URL: "http://192.168.1.32:1002",
|
|
||||||
// API_URL: " https://shopapi.houyi2023.cn",
|
|
||||||
// API_URL: "http://shopapi.houyi2023.cn",
|
|
||||||
WS_URL: "ws://lv.com",
|
|
||||||
STATIC_URL: "http://lv.com",
|
|
||||||
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
mock: {
|
mock: {
|
||||||
include: ['mock/**/*', 'src/pages/**/_mock.ts'],
|
include: ['mock/**/*', 'src/pages/**/_mock.ts'],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -85,8 +85,7 @@ export default defineConfig({
|
|||||||
define: {
|
define: {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
API_URL: "https://iadminapi.zhongshuai2023.com",
|
API_URL: "https://iadminapi.zhongshuai2023.com",
|
||||||
// API_URL: " https://shopapi.houyi2023.cn",
|
// API_URL: "http://192.168.1.32:1002",
|
||||||
// API_URL: "http://shopapi.houyi2023.cn",
|
|
||||||
WS_URL: "ws://lv.com",
|
WS_URL: "ws://lv.com",
|
||||||
STATIC_URL: "http://lv.com",
|
STATIC_URL: "http://lv.com",
|
||||||
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
||||||
|
|||||||
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/umi.631dbead.js"></script>
|
<script src="/umi.b5e66809.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
File diff suppressed because one or more lines are too long
1
dist/src__pages__config__banner__index.d3489d88.async.js
vendored
Normal file
1
dist/src__pages__config__banner__index.d3489d88.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
160
dist/umi.631dbead.js → dist/umi.b5e66809.js
vendored
160
dist/umi.631dbead.js → dist/umi.b5e66809.js
vendored
File diff suppressed because one or more lines are too long
@@ -36,7 +36,7 @@ const handleAdd = async (fields) => {
|
|||||||
* @param fields
|
* @param fields
|
||||||
*/
|
*/
|
||||||
const handleUpdate = async (fields) => {
|
const handleUpdate = async (fields) => {
|
||||||
fields.status = fields.status ? 1 : 0
|
fields.status = fields.status ? 0 : 1
|
||||||
|
|
||||||
const hide = message.loading('正在修改');
|
const hide = message.loading('正在修改');
|
||||||
try {
|
try {
|
||||||
@@ -111,7 +111,7 @@ const MenuTableList: React.FC = () => {
|
|||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
search: false,
|
search: false,
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
return <Image src={record.imageUrl} width={60} height={60}></Image>
|
return <Image src={record.imageUrl} width={60} height={60}></Image>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -144,6 +144,12 @@ const MenuTableList: React.FC = () => {
|
|||||||
hidden={!access.hasPerms('admin/banner/update')}
|
hidden={!access.hasPerms('admin/banner/update')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setModalVisible(true);
|
setModalVisible(true);
|
||||||
|
let data = JSON.parse(JSON.stringify(record))
|
||||||
|
if (data.status == 0) {
|
||||||
|
data.status = true
|
||||||
|
}else{
|
||||||
|
data.status = false
|
||||||
|
}
|
||||||
setCurrentRow(record);
|
setCurrentRow(record);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -127,14 +127,11 @@ export const errorConfig: RequestConfig = {
|
|||||||
// 拦截请求配置,进行个性化处理。
|
// 拦截请求配置,进行个性化处理。
|
||||||
const Authorization = localStorage.getItem('token') || ''
|
const Authorization = localStorage.getItem('token') || ''
|
||||||
const headers = { Authorization };
|
const headers = { Authorization };
|
||||||
console.log(process.env.API_URL);
|
|
||||||
|
|
||||||
let url = `${process.env.API_URL}${config.url}`;
|
let url = `${process.env.API_URL}${config.url}`;
|
||||||
|
|
||||||
if (config.url.includes('https://')) {
|
if (config.url.includes('https://')) {
|
||||||
url = config.url;
|
url = config.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// let url = `${process.env.API_BASEURL ? process.env.API_BASEURL : ''}` + config.url;
|
// let url = `${process.env.API_BASEURL ? process.env.API_BASEURL : ''}` + config.url;
|
||||||
// if (config.url.includes('https://')) {
|
// if (config.url.includes('https://')) {
|
||||||
// url = config.url;
|
// url = config.url;
|
||||||
|
|||||||
Reference in New Issue
Block a user