mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-07 01:46:45 +08:00
feat:修改配置
This commit is contained in:
11236
package-lock.json
generated
11236
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,11 @@
|
||||
/*
|
||||
* @Author: 李晓鸽 lixg@dongwu-inc.com
|
||||
* @Date: 2022-11-21 18:45:34
|
||||
* @LastEditors: 李晓鸽 lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-11-21 18:47:43
|
||||
* @FilePath: \stu_h5\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 routesConfig from './config';
|
||||
// console.log('routesConfig', routesConfig)
|
||||
@@ -12,7 +20,7 @@ const routes = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
history: createWebHashHistory("/student-h5/"),
|
||||
routes
|
||||
})
|
||||
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
/*
|
||||
* @Author: 李晓鸽 lixg@dongwu-inc.com
|
||||
* @Date: 2022-11-21 18:45:34
|
||||
* @LastEditors: 李晓鸽 lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-11-21 18:47:18
|
||||
* @FilePath: \stu_h5\vue.config.js
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
publicPath: "/student-h5",
|
||||
transpileDependencies: true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user