ice3使用i18n插件后,每次重新在pages里添加路由或删除路由,插件设置的路由都会失效
Ylg12345 opened this issue · comments
Yan commented
Describe the bug
Expected behavior
Actual behavior
使用i18n,在pages里添加或删除文件,插件设置的路由失效
Version of ice.js
ice3
Content of build.json or ice.config.mts
import { defineConfig } from '@ice/app';
import antd from '@ice/plugin-antd';
import request from '@ice/plugin-request';
import store from '@ice/plugin-store';
import i18n from '@ice/plugin-i18n';
// The project config, see https://v3.ice.work/docs/guide/basic/config
const minify = process.env.NODE_ENV === 'production' ? 'swc' : false;
export default defineConfig(() => ({
// Set your configs here.
minify,
server: {
onDemand: true,
format: 'esm',
},
plugins: [
request(),
store(),
antd({
importStyle: true,
}),
i18n({
locales: ['zh-CN', 'en-US', 'de'],
defaultLocale: 'zh-CN',
}),
],
routes: {
ignoreFiles: ['**/components/**']
}
}));
Additional context
No response