Browse Source

配置项

master
ZAN 3 years ago
parent
commit
bba410b9b9
  1. 2
      index.html
  2. BIN
      public/LG.png
  3. BIN
      public/favicon.ico
  4. 2
      src/router/index.js
  5. 6
      vite.config.js

2
index.html

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/LG.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vue3后台管理系统</title>
</head>

BIN
public/LG.png

After

Width: 500  |  Height: 500  |  Size: 21 KiB

BIN
public/favicon.ico

2
src/router/index.js

@ -10,7 +10,7 @@ NProgress.configure({
const router = createRouter({
// history: createWebHashHistory(),
history: createWebHashHistory('/vue-management-template/'),
routes: [{
path: '/',
redirect: '/login'

6
vite.config.js

@ -16,12 +16,12 @@ module.exports = {
* 在生产中服务时的基本公共路径
* @default '/'
*/
base: '/vue-management-template/',
base: '/vue-management-template/', //github pages
// base:"./",
/**
* 相关的目录构建输出将放在其中如果目录存在它将在构建之前被删除
* @default 'dist'
*/
outDir: 'dist',
// 反向代理
proxy: {
// '/api': {

Loading…
Cancel
Save