打包相关问题修复
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
"rollup-plugin-visualizer": "^5.9.2",
|
||||
"sass": "^1.63.6",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"terser": "^5.39.0",
|
||||
"typescript": "~5.0.4",
|
||||
"unplugin-vue-components": "^0.26.0",
|
||||
"vite": "^4.5.2",
|
||||
|
||||
@@ -7,14 +7,12 @@ import dashboardRouter from './config/dashboard';
|
||||
import noticeRouter from './config/notice';
|
||||
import accountRouter from './config/account';
|
||||
import errorRouter from './config/error';
|
||||
import onLineEditor from './config/editor';
|
||||
|
||||
export { injectRouter } from './interceptor';
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
...onLineEditor,
|
||||
...homeRouter,
|
||||
...accountRouter,
|
||||
...dashboardRouter,
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import IssueFilterList from '@/views/Repo/components/IssueFilterList/index.vue';
|
||||
const route = useRoute();
|
||||
const table = ref();
|
||||
const scope = ref('');
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
defineOptions({ name: 'MY-MR' });
|
||||
import { watch, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import MergreFilterList from '@/views/Repo/components/MergeFilterList/index.vue';
|
||||
const scope = ref('');
|
||||
const route = useRoute();
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
defineOptions({ name: 'IssueList' });
|
||||
import IssueFilterList from '@/views/Mobile/Repo/components/IssueFilterList/index.vue';
|
||||
import PinList from './components/PinList.vue';
|
||||
import { useRepoId } from '@/utils/hooks/useRepoId';
|
||||
const { repoId } = useRepoId();
|
||||
|
||||
@@ -63,6 +63,12 @@ export default (config: any) => {
|
||||
|
||||
build: {
|
||||
// sourcemap: config.mode !== 'production',
|
||||
minify: 'terser', // 确保使用 terser 进行压缩
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true, // 移除 console.log
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
define: {
|
||||
|
||||
Reference in New Issue
Block a user