mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 12:26:49 +08:00
Merge branch 'master' of http://gitlab.dongwu-inc.com:10080/BOE/fe-stu
This commit is contained in:
BIN
node_modules.zip
Normal file
BIN
node_modules.zip
Normal file
Binary file not shown.
41425
package-lock.json
generated
41425
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
src/App.vue
12
src/App.vue
@@ -1,6 +1,14 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
|
* @Date: 2022-11-21 17:28:10
|
||||||
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
|
* @LastEditTime: 2022-11-22 12:54:09
|
||||||
|
* @FilePath: /fe-stu/src/App.vue
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="nav">
|
<!-- <div id="nav">
|
||||||
<router-link
|
<router-link
|
||||||
v-for="item in routes"
|
v-for="item in routes"
|
||||||
:key="item.path"
|
:key="item.path"
|
||||||
@@ -12,7 +20,7 @@
|
|||||||
>
|
>
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div> -->
|
||||||
<main>
|
<main>
|
||||||
<router-view />
|
<router-view />
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
|
* @Date: 2022-11-21 17:28:10
|
||||||
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
|
* @LastEditTime: 2022-11-22 12:45:23
|
||||||
|
* @FilePath: /fe-stu/src/router/index.js
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
*/
|
||||||
import { createRouter, createWebHashHistory } from 'vue-router';
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
||||||
import routesConfig from './config';
|
import routesConfig from './config';
|
||||||
// console.log('routesConfig', routesConfig)
|
// console.log('routesConfig', routesConfig)
|
||||||
@@ -12,7 +20,7 @@ const routes = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory(),
|
history: createWebHashHistory("/fe-student"),
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,38 +1,47 @@
|
|||||||
import {defineConfig} from 'vite'
|
/*
|
||||||
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
|
* @Date: 2022-11-21 17:28:10
|
||||||
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
|
* @LastEditTime: 2022-11-22 12:45:57
|
||||||
|
* @FilePath: /fe-stu/vite.config.js
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
*/
|
||||||
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import legacy from '@vitejs/plugin-legacy'
|
import legacy from '@vitejs/plugin-legacy'
|
||||||
import {viteMockServe} from 'vite-plugin-mock'
|
import { viteMockServe } from 'vite-plugin-mock'
|
||||||
import topLevelAwait from "vite-plugin-top-level-await";
|
import topLevelAwait from "vite-plugin-top-level-await";
|
||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
export default defineConfig(({command}) =>
|
export default defineConfig(({ command }) =>
|
||||||
({
|
({
|
||||||
plugins: [
|
base: '/fe-student',
|
||||||
vue(),
|
plugins: [
|
||||||
// legacy({
|
vue(),
|
||||||
// targets: ['chrome 64', 'defaults', 'not IE 11']
|
// legacy({
|
||||||
// }),
|
// targets: ['chrome 64', 'defaults', 'not IE 11']
|
||||||
topLevelAwait({
|
// }),
|
||||||
promiseExportName: '__tla',
|
topLevelAwait({
|
||||||
promiseImportName: i => `__tla_${i}`
|
promiseExportName: '__tla',
|
||||||
}),
|
promiseImportName: i => `__tla_${i}`
|
||||||
viteMockServe({
|
}),
|
||||||
mockPath: './src/mock/mocks',
|
viteMockServe({
|
||||||
})
|
mockPath: './src/mock/mocks',
|
||||||
],
|
})
|
||||||
resolve: {
|
],
|
||||||
alias: [
|
resolve: {
|
||||||
{find: '@', replacement: path.resolve(__dirname, 'src')}
|
alias: [
|
||||||
]
|
{ find: '@', replacement: path.resolve(__dirname, 'src') }
|
||||||
}, server: {
|
]
|
||||||
proxy: {
|
}, server: {
|
||||||
'/file/upload': {
|
proxy: {
|
||||||
target: 'http://111.231.196.214:30001',
|
'/file/upload': {
|
||||||
changeOrigin: true,
|
target: 'http://111.231.196.214:30001',
|
||||||
}
|
changeOrigin: true,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user