cyc
This commit is contained in:
parent
b44955ea36
commit
08086690bf
6
.env.sub
Normal file
6
.env.sub
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# NODE_ENV=sub
|
||||||
|
VUE_APP_BASE_URL=/reading/
|
||||||
|
# VUE_APP_BASE_URL1=/dist/
|
||||||
|
# VUE_APP_NAME=caoyuchun
|
||||||
|
# VUE_APP_EMAIL=caoyuchun2003@qq.com
|
||||||
|
# // base: process.env.NODE_ENV == "sub"? process.env.VUE_APP_BASE_URL:"",
|
||||||
@ -5,6 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
|
"build-sub": "vue-cli-service build --mode sub",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
|
<!-- <link rel="https://axdbook.zxkedu.com/bundles/app/images/zwsjimg2_06.png"> -->
|
||||||
|
|
||||||
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
||||||
<title>电子书阅读器</title>
|
<title>电子书阅读器</title>
|
||||||
</head>
|
</head>
|
||||||
@ -12,6 +14,26 @@
|
|||||||
<noscript>
|
<noscript>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
setFavion = () => {
|
||||||
|
var link = document.querySelector("link[rel*='icon']")
|
||||||
|
// <link rel="icon" href="https://axdbook.zxkedu.com/bundles/app/images/zwsjimg2_06.png">
|
||||||
|
if (window.location.hostname.includes("axdbook")
|
||||||
|
||window.location.hostname.includes("local")
|
||||||
|
){
|
||||||
|
// if (window.location.hostname.includes("local")){
|
||||||
|
|
||||||
|
document.title = "翱翔书苑-电子书阅读"
|
||||||
|
link.href = "../favicon.ico"
|
||||||
|
console.log(window.location.hostname)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
setFavion()
|
||||||
|
|
||||||
|
</script>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -1,11 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="思维导图"
|
title="导图"
|
||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
width="80%"
|
width="80%"
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
>
|
>
|
||||||
<div ref="mindElixirContainer" id="mindContainerID" style="width: 100%; height: 500px;"></div>
|
<div style="display: flex; width: 100%; justify-content: space-between; margin-top: -30px;margin-bottom: 10px;">
|
||||||
|
<p>说明:请点击右键进行操作,编辑完成后需保存</p>
|
||||||
|
<!-- <el-button type="primary" @click="save"> 保存</el-button> -->
|
||||||
|
</div>
|
||||||
|
<div ref="mindElixirContainer" id="mindContainerID" style="width: 100%; height: 50vh;"></div>
|
||||||
|
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="nav">
|
<div id="nav">
|
||||||
<div>
|
<div>
|
||||||
<a :href=this.$store.state.redirecturl>返回首页</a>
|
<a :href="backUrl">返回首页</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <router-link to="/book">书籍</router-link> | -->
|
<!-- <router-link to="/book">书籍</router-link> | -->
|
||||||
<h3>{{this.$store.state.textBookData.textBooksName}}</h3>
|
<h3>{{this.$store.state.textBookData.textBooksName}}</h3>
|
||||||
@ -46,6 +47,13 @@ export default {
|
|||||||
mindData:{},
|
mindData:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
|
||||||
|
backUrl(){
|
||||||
|
return this.$store.state.redirecturl?this.$store.state.redirecturl:"../"
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.bookId = this.$route.query.bookId
|
this.bookId = this.$route.query.bookId
|
||||||
|
|||||||
@ -15,7 +15,7 @@ const routes = [
|
|||||||
name: 'Book',
|
name: 'Book',
|
||||||
component: () => import(/* webpackChunkName: "about" */ '../views/Book.vue'),
|
component: () => import(/* webpackChunkName: "about" */ '../views/Book.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"新思课堂电子书阅读"
|
// title:"新思课堂电子书阅读"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -27,10 +27,11 @@ const routes = [
|
|||||||
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
|
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
// base: process.env.NODE_ENV == "sub"? process.env.VUE_APP_BASE_URL:""
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
base: process.env.BASE_URL,
|
base: process.env.VUE_APP_BASE_URL,
|
||||||
|
// base: "/dist/",
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -128,7 +128,7 @@ export default {
|
|||||||
userInfo:{},
|
userInfo:{},
|
||||||
userId:{},
|
userId:{},
|
||||||
classList:[],
|
classList:[],
|
||||||
classId:'',
|
classId:0,
|
||||||
className:'',
|
className:'',
|
||||||
teacherData:{},
|
teacherData:{},
|
||||||
studentData:{}
|
studentData:{}
|
||||||
@ -137,7 +137,6 @@ export default {
|
|||||||
|
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
document.title = "新思课堂电子书阅读"
|
|
||||||
this.bookId = this.$route.query.bookId
|
this.bookId = this.$route.query.bookId
|
||||||
|
|
||||||
this.userId = getStore("userId")
|
this.userId = getStore("userId")
|
||||||
@ -175,10 +174,10 @@ export default {
|
|||||||
this.location = localStorage.getItem(this.textBookData.id)
|
this.location = localStorage.getItem(this.textBookData.id)
|
||||||
|
|
||||||
this.request()// 请求数据
|
this.request()// 请求数据
|
||||||
setTimeout(() => {
|
setTimeout( async() => {
|
||||||
// this.getData()
|
// this.getData()
|
||||||
this.getMineData()
|
await this.getMineData()
|
||||||
this.studySituation()
|
await this.studySituation()
|
||||||
// this.getSetting()
|
// this.getSetting()
|
||||||
}, 800)
|
}, 800)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
lintOnSave: false,
|
lintOnSave: false,
|
||||||
|
publicPath: './', // 设置公共路径为相对路径
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user