refactor(Order/List): 更新退款相关状态标签为更简洁的表达 #26
|
|
@ -4,6 +4,7 @@ const isDev = process.env.NODE_ENV === 'development';
|
|||
const UMI_APP_API_URL = isDev
|
||||
? 'http://localhost:7001'
|
||||
: 'https://api.yoone.ca';
|
||||
import { codeInspectorPlugin } from 'code-inspector-plugin';
|
||||
|
||||
export default defineConfig({
|
||||
hash: true,
|
||||
|
|
@ -18,6 +19,13 @@ export default defineConfig({
|
|||
define: {
|
||||
UMI_APP_API_URL,
|
||||
},
|
||||
chainWebpack(config) {
|
||||
config.plugin('code-inspector-plugin').use(
|
||||
codeInspectorPlugin({
|
||||
bundler: 'webpack',
|
||||
})
|
||||
);
|
||||
},
|
||||
routes: [
|
||||
{ path: '/', redirect: '/home' },
|
||||
{ name: '追踪', path: '/track', component: './Track', layout: false },
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
"devDependencies": {
|
||||
"@types/react": "^18.0.33",
|
||||
"@types/react-dom": "^18.0.11",
|
||||
"code-inspector-plugin": "^1.2.10",
|
||||
"husky": "^9",
|
||||
"lint-staged": "^13.2.0",
|
||||
"prettier": "^2.8.7",
|
||||
|
|
|
|||
Loading…
Reference in New Issue