fix: 修改忽略文件
This commit is contained in:
parent
ee25cb5e30
commit
cc69961d94
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@
|
||||
aircraft-carrier-fleet
|
||||
dist
|
||||
.idea
|
||||
pnpm-lock.yaml
|
43
.umirc.ts
43
.umirc.ts
@ -1,43 +0,0 @@
|
||||
import { defineConfig } from '@umijs/max';
|
||||
|
||||
export default defineConfig({
|
||||
favicons: ['/assets/logo.jpg'],
|
||||
access: {},
|
||||
model: {},
|
||||
dva: {},
|
||||
request: {},
|
||||
initialState: {},
|
||||
layout: false,
|
||||
qiankun: {
|
||||
master: {
|
||||
prefetch: false,
|
||||
},
|
||||
},
|
||||
mfsu: false,
|
||||
routes: [
|
||||
{
|
||||
name: 'cabinet',
|
||||
path: '/cabinet/*',
|
||||
microApp: 'cabinet',
|
||||
},
|
||||
{
|
||||
name: 'algorithm',
|
||||
path: '/algorithm/*',
|
||||
microApp: 'algorithm',
|
||||
},
|
||||
{
|
||||
name: 'video',
|
||||
path: '/video/*',
|
||||
microApp: 'video',
|
||||
},
|
||||
{
|
||||
name: '物料库',
|
||||
path: '/material/*',
|
||||
microApp: 'material',
|
||||
},
|
||||
],
|
||||
npmClient: 'pnpm',
|
||||
define: {
|
||||
APP_ENV: process.env.APP_ENV || 'development',
|
||||
},
|
||||
});
|
@ -0,0 +1,23 @@
|
||||
import { defineConfig } from '@umijs/max';
|
||||
import routes from './routes';
|
||||
|
||||
export default defineConfig({
|
||||
favicons: ['/assets/logo.jpg'],
|
||||
access: {},
|
||||
model: {},
|
||||
dva: {},
|
||||
request: {},
|
||||
initialState: {},
|
||||
layout: false,
|
||||
qiankun: {
|
||||
master: {
|
||||
prefetch: false,
|
||||
},
|
||||
},
|
||||
mfsu: false,
|
||||
routes,
|
||||
npmClient: 'pnpm',
|
||||
define: {
|
||||
APP_ENV: process.env.APP_ENV || 'development',
|
||||
},
|
||||
});
|
@ -1,3 +1,23 @@
|
||||
export default {
|
||||
routes: [],
|
||||
};
|
||||
const routes = [
|
||||
{
|
||||
name: 'cabinet',
|
||||
path: '/cabinet/*',
|
||||
microApp: 'cabinet',
|
||||
},
|
||||
{
|
||||
name: 'algorithm',
|
||||
path: '/algorithm/*',
|
||||
microApp: 'algorithm',
|
||||
},
|
||||
{
|
||||
name: 'video',
|
||||
path: '/video/*',
|
||||
microApp: 'video',
|
||||
},
|
||||
{
|
||||
name: '物料库',
|
||||
path: '/material/*',
|
||||
microApp: 'material',
|
||||
},
|
||||
];
|
||||
export default routes;
|
||||
|
14173
pnpm-lock.yaml
14173
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -4,11 +4,9 @@ import { API_URL } from './constants';
|
||||
const doRequest: RequestConfig = {
|
||||
timeout: 1000,
|
||||
baseURL: API_URL,
|
||||
// other axios options you want
|
||||
errorConfig: {
|
||||
// @ts-ignore
|
||||
errorHandler(error: any, opts: any) {
|
||||
console.log('first', error, opts);
|
||||
errorHandler(error, opts) {
|
||||
console.log('errorHandler', error, opts);
|
||||
// if (opts?.skipErrorHandler) throw error
|
||||
// try {
|
||||
// const { res } = ctx;
|
||||
@ -43,7 +41,6 @@ const doRequest: RequestConfig = {
|
||||
// throw error;
|
||||
// }
|
||||
},
|
||||
// @ts-ignore
|
||||
errorThrower(res) {
|
||||
console.log('res', res);
|
||||
},
|
||||
@ -53,7 +50,6 @@ const doRequest: RequestConfig = {
|
||||
// 一个二元组,第一个元素是 request 拦截器,第二个元素是错误处理
|
||||
[
|
||||
(url, options) => {
|
||||
// console.log('options', options);
|
||||
return {
|
||||
url,
|
||||
options: {
|
||||
|
Loading…
Reference in New Issue
Block a user