''
This commit is contained in:
parent
6e70e3b728
commit
5e979d024d
@ -47,7 +47,8 @@ exports.cssLoaders = function (options) {
|
|||||||
if (options.extract) {
|
if (options.extract) {
|
||||||
return ExtractTextPlugin.extract({
|
return ExtractTextPlugin.extract({
|
||||||
use: loaders,
|
use: loaders,
|
||||||
fallback: 'vue-style-loader'
|
fallback: 'vue-style-loader',
|
||||||
|
publicPath: '../../'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return ['vue-style-loader'].concat(loaders)
|
return ['vue-style-loader'].concat(loaders)
|
||||||
|
@ -55,7 +55,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
|||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
filename: 'index.html',
|
filename: 'index.html',
|
||||||
template: 'index.html',
|
template: 'index.html',
|
||||||
inject: true
|
inject: true,
|
||||||
|
favicon: path.resolve(__dirname, '../src/assets/img/eee.ico'),
|
||||||
}),
|
}),
|
||||||
// copy custom static assets
|
// copy custom static assets
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
|
@ -64,6 +64,7 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|||||||
filename: config.build.index,
|
filename: config.build.index,
|
||||||
template: 'index.html',
|
template: 'index.html',
|
||||||
inject: true,
|
inject: true,
|
||||||
|
favicon: path.resolve(__dirname, '../src/assets/img/eee.ico'),
|
||||||
minify: {
|
minify: {
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
|
@ -43,7 +43,7 @@ module.exports = {
|
|||||||
// Paths
|
// Paths
|
||||||
assetsRoot: path.resolve(__dirname, '../dist'),
|
assetsRoot: path.resolve(__dirname, '../dist'),
|
||||||
assetsSubDirectory: 'static',
|
assetsSubDirectory: 'static',
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: './',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Source Maps
|
* Source Maps
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// 配置API接口地址
|
// 配置API接口地址
|
||||||
import de from "element-ui/src/locale/lang/de";
|
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://123.57.22.91:8002'
|
||||||
// let root = 'http://127.0.0.1:8048'
|
let root = 'http://127.0.0.1:8048'
|
||||||
// 引用axios
|
// 引用axios
|
||||||
let axios = require('axios')
|
let axios = require('axios')
|
||||||
// 自定义判断元素类型JS
|
// 自定义判断元素类型JS
|
||||||
|
BIN
HSLink-front/src/assets/img/eee.ico
Normal file
BIN
HSLink-front/src/assets/img/eee.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -34,22 +34,6 @@
|
|||||||
</el-menu>
|
</el-menu>
|
||||||
</el-aside>
|
</el-aside>
|
||||||
<el-main>
|
<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>
|
<router-view></router-view>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
@ -180,6 +180,7 @@
|
|||||||
console.log(this.form.username)
|
console.log(this.form.username)
|
||||||
},
|
},
|
||||||
selectUsername(event) {
|
selectUsername(event) {
|
||||||
|
this.rememberPassword = true
|
||||||
if (this.rememberList != null) {
|
if (this.rememberList != null) {
|
||||||
this.rememberList.forEach((item)=>{
|
this.rememberList.forEach((item)=>{
|
||||||
if (item.username == event) {
|
if (item.username == event) {
|
||||||
@ -275,7 +276,7 @@
|
|||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
float: right;
|
float: right;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem!important;
|
||||||
}
|
}
|
||||||
#forget:hover{
|
#forget:hover{
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// The Vue build version to load with the `import` command
|
// The Vue build version to load with the `import` command
|
||||||
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App'
|
|
||||||
import router from './router'
|
|
||||||
import ElementUI from 'element-ui'
|
import ElementUI from 'element-ui'
|
||||||
import 'element-ui/lib/theme-chalk/index.css'
|
import 'element-ui/lib/theme-chalk/index.css'
|
||||||
|
import App from './App'
|
||||||
|
import router from './router'
|
||||||
import '@/assets/css/public.css'
|
import '@/assets/css/public.css'
|
||||||
// 引用API文件
|
// 引用API文件
|
||||||
import api from './api/index.js'
|
import api from './api/index.js'
|
||||||
|
@ -14,6 +14,7 @@ export default new Router({
|
|||||||
path:'/',
|
path:'/',
|
||||||
name:'index',
|
name:'index',
|
||||||
component:() => import('@/components/Index'),
|
component:() => import('@/components/Index'),
|
||||||
|
redirect: '/homepage',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path:'help',
|
path:'help',
|
||||||
|
Loading…
Reference in New Issue
Block a user