This commit is contained in:
裴浩宇 2020-04-10 18:07:07 +08:00
parent 6e70e3b728
commit 5e979d024d
11 changed files with 16 additions and 26 deletions

View File

@ -47,7 +47,8 @@ exports.cssLoaders = function (options) {
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
fallback: 'vue-style-loader',
publicPath: '../../'
})
} else {
return ['vue-style-loader'].concat(loaders)

View File

@ -55,7 +55,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
inject: true,
favicon: path.resolve(__dirname, '../src/assets/img/eee.ico'),
}),
// copy custom static assets
new CopyWebpackPlugin([

View File

@ -46,7 +46,7 @@ const webpackConfig = merge(baseWebpackConfig, {
filename: utils.assetsPath('css/[name].[contenthash].css'),
// Setting the following option to `false` will not extract CSS from codesplit chunks.
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
allChunks: true,
}),
@ -64,6 +64,7 @@ const webpackConfig = merge(baseWebpackConfig, {
filename: config.build.index,
template: 'index.html',
inject: true,
favicon: path.resolve(__dirname, '../src/assets/img/eee.ico'),
minify: {
removeComments: true,
collapseWhitespace: true,

View File

@ -43,7 +43,7 @@ module.exports = {
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsPublicPath: './',
/**
* Source Maps

View File

@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>hslink</title>
<link rel="shortcut icon" href="./src/assets/img/eee.ico" type="image/x-icon">
<title>HSLink</title>
</head>
<body>
<div id="app"></div>

View File

@ -1,9 +1,9 @@
// 配置API接口地址
import de from "element-ui/src/locale/lang/de";
let root = 'http://192.168.10.29:8048'
// let root = 'http://192.168.10.29:8048'
// let root = 'http://123.57.22.91:8002'
// let root = 'http://127.0.0.1:8048'
let root = 'http://127.0.0.1:8048'
// 引用axios
let axios = require('axios')
// 自定义判断元素类型JS

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -34,22 +34,6 @@
</el-menu>
</el-aside>
<el-main>
<!--<div id="tab">
<span class="pointer white text-underline" @click="goHomepage">首页</span>
<el-divider direction="vertical"></el-divider>
<span class="pointer white text-underline" @click="goSchoolNotice">校园通知</span>
<el-divider direction="vertical"></el-divider>
<span class="pointer white text-underline" @click="goParentsOpinion">家长建议</span>
<el-divider direction="vertical"></el-divider>
<span class="pointer white text-underline" @click="goStudentThought">学生想法</span>
<el-divider direction="vertical"></el-divider>
<span class="pointer white text-underline" @click="goMyClass">我的班级</span>
<el-divider direction="vertical"></el-divider>
<span class="pointer white text-underline" @click="goMore">更多···</span>
<span class="pointer white text-underline user-info" v-if="!isLogin" @click="login">登录</span>
<span class="pointer white text-underline user-cancellation" v-if="isLogin" @click="cancellation">注销</span>
<span class="pointer white text-underline user-info" v-if="isLogin">欢迎{{userInfo.real_name}}{{userInfo.user_type}}</span>
</div>-->
<router-view></router-view>
</el-main>
</el-container>

View File

@ -180,6 +180,7 @@
console.log(this.form.username)
},
selectUsername(event) {
this.rememberPassword = true
if (this.rememberList != null) {
this.rememberList.forEach((item)=>{
if (item.username == event) {
@ -275,7 +276,7 @@
font-size: 0.9rem;
float: right;
cursor: pointer;
margin-right: 1rem;
margin-right: 1rem!important;
}
#forget:hover{
text-decoration: underline;

View File

@ -1,10 +1,10 @@
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import '@/assets/css/public.css'
// 引用API文件
import api from './api/index.js'

View File

@ -14,6 +14,7 @@ export default new Router({
path:'/',
name:'index',
component:() => import('@/components/Index'),
redirect: '/homepage',
children: [
{
path:'help',