Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yma16
myblogVue_django
提交
85cea1e0
M
myblogVue_django
项目概览
yma16
/
myblogVue_django
通知
5
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
myblogVue_django
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
85cea1e0
编写于
10月 17, 2022
作者:
yma16
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf:添加小程序的跳转
上级
8cf24e8b
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
108 addition
and
69 deletion
+108
-69
build/webpack.prod.conf.js
build/webpack.prod.conf.js
+41
-41
src/components/Article.vue
src/components/Article.vue
+45
-3
src/components/Bilicom.vue
src/components/Bilicom.vue
+3
-1
src/echarts/Map.vue
src/echarts/Map.vue
+2
-1
src/main.js
src/main.js
+14
-14
src/store/index.js
src/store/index.js
+2
-8
src/weather/EchartWeather.vue
src/weather/EchartWeather.vue
+1
-1
未找到文件。
build/webpack.prod.conf.js
浏览文件 @
85cea1e0
...
@@ -20,47 +20,47 @@ const env =
...
@@ -20,47 +20,47 @@ const env =
let
externalModules
=
{}
let
externalModules
=
{}
//cdn 配置
//cdn 配置
let
externalConfig
=
[]
let
externalConfig
=
[]
//
if (process.env.NODE_ENV === 'production') {
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
//
//生产环境
//生产环境
//
externalModules = {
externalModules
=
{
//
vue: 'Vue',
vue
:
'
Vue
'
,
//
'vue-router': 'VueRouter',
'
vue-router
'
:
'
VueRouter
'
,
//
vuex: 'Vuex',
vuex
:
'
Vuex
'
,
//
axios: 'axios',
axios
:
'
axios
'
,
//
'element-ui': 'element-ui',
'
element-ui
'
:
'
element-ui
'
,
//
echarts: 'echarts',
echarts
:
'
echarts
'
,
//
highlight: 'hljs',
highlight
:
'
hljs
'
,
//
}
}
//
externalConfig = [
externalConfig
=
[
//
{js: 'https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js', css: ''},
{
js
:
'
https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js
'
,
css
:
''
},
//
{
{
//
js: 'https://cdn.bootcdn.net/ajax/libs/vue-router/3.0.1/vue-router.min.js',
js
:
'
https://cdn.bootcdn.net/ajax/libs/vue-router/3.0.1/vue-router.min.js
'
,
//
css: '',
css
:
''
,
//
},
},
//
{js: 'https://unpkg.com/axios/dist/axios.min.js', css: ''},
{
js
:
'
https://unpkg.com/axios/dist/axios.min.js
'
,
css
:
''
},
//
{js: 'https://cdn.bootcss.com/vuex/3.6.2/vuex.min.js', css: ''},
{
js
:
'
https://cdn.bootcss.com/vuex/3.6.2/vuex.min.js
'
,
css
:
''
},
//
{
{
//
js: 'https://unpkg.com/element-ui/lib/index.js',
js
:
'
https://unpkg.com/element-ui/lib/index.js
'
,
//
css: 'https://unpkg.com/element-ui/lib/theme-chalk/index.css',
css
:
'
https://unpkg.com/element-ui/lib/theme-chalk/index.css
'
,
//
},
},
//
{
{
//
js: 'https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js',
js
:
'
https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js
'
,
//
css: '',
css
:
''
,
//
},
},
//
{
{
//
js: 'https://cdn.bootcdn.net/ajax/libs/highlight.js/11.6.0/highlight.min.js',
js
:
'
https://cdn.bootcdn.net/ajax/libs/highlight.js/11.6.0/highlight.min.js
'
,
//
css: '',
css
:
''
,
//
},
},
//
{
{
//
js: '',
js
:
''
,
//
css: 'https://cdn.bootcdn.net/ajax/libs/github-markdown-css/5.1.0/github-markdown-light.min.css',
css
:
'
https://cdn.bootcdn.net/ajax/libs/github-markdown-css/5.1.0/github-markdown-light.min.css
'
,
//
},
},
//
{
{
//
js: '',
js
:
''
,
//
css: 'https://cdn.bootcdn.net/ajax/libs/nprogress/0.2.0/nprogress.css',
css
:
'
https://cdn.bootcdn.net/ajax/libs/nprogress/0.2.0/nprogress.css
'
,
//
},
},
//
]
]
//
}
}
const
webpackConfig
=
merge
(
baseWebpackConfig
,
{
const
webpackConfig
=
merge
(
baseWebpackConfig
,
{
externals
:
externalModules
,
//打包忽略
externals
:
externalModules
,
//打包忽略
...
...
src/components/Article.vue
浏览文件 @
85cea1e0
...
@@ -82,8 +82,9 @@
...
@@ -82,8 +82,9 @@
class=
"weather_class1"
class=
"weather_class1"
cellpadding=
"1px"
cellpadding=
"1px"
shadow=
"always"
shadow=
"always"
style=
"position: static; margin-top: 2%"
style=
"position: static; margin-top: 2%
;text-align: center
"
>
>
<span
style=
"line-height: 30px;"
class=
"uni-font"
>
爬取天气预报
</span>
<div
style=
"positon: relative; width: 100%; height: 100%"
>
<div
style=
"positon: relative; width: 100%; height: 100%"
>
<EchartWeather>
</EchartWeather>
<EchartWeather>
</EchartWeather>
</div>
</div>
...
@@ -98,7 +99,23 @@
...
@@ -98,7 +99,23 @@
line-height: 10px;
line-height: 10px;
text-align: center;
text-align: center;
"
"
><a
href=
"https://blog.csdn.net/qq_38870145"
>
>
<span
style=
"line-height: 30px;"
class=
"uni-font"
>
小程序
</span>
<img
class=
"image"
src=
"https://yongma16.xyz/staticFile/common/logo/wxProgram.jpg"
/>
</el-card>
<el-card
class=
"user_img1"
style=
"
position: static;
margin: 2% auto auto auto;
line-height: 10px;
text-align: center;
"
>
<span
style=
"line-height: 30px;"
class=
"uni-font"
>
点击图片前往csdn
</span>
<a
href=
"https://blog.csdn.net/qq_38870145"
>
<img
class=
"image"
src=
"@/assets/img/csdn.jpg"
<img
class=
"image"
src=
"@/assets/img/csdn.jpg"
/></a>
/></a>
</el-card>
</el-card>
...
@@ -154,6 +171,18 @@
...
@@ -154,6 +171,18 @@
>
>
</el-card>
-->
</el-card>
-->
<el-card
class=
"user_img2"
style=
"
position: static;
margin: 2% auto auto auto;
line-height: 10px;
text-align: center;
"
>
<span
style=
"line-height: 30px;"
class=
"uni-font"
>
小程序
</span>
<img
class=
"image"
src=
"https://yongma16.xyz/staticFile/common/logo/wxProgram.jpg"
/>
</el-card>
<!-- csdn头像 -->
<!-- csdn头像 -->
<el-card
<el-card
class=
"user_img2"
class=
"user_img2"
...
@@ -163,10 +192,14 @@
...
@@ -163,10 +192,14 @@
line-height: 10px;
line-height: 10px;
text-align: center;
text-align: center;
"
"
><a
href=
"https://blog.csdn.net/qq_38870145"
>
>
<span
style=
"line-height: 30px;"
class=
"uni-font"
>
点击图片前往csdn
</span>
<a
href=
"https://blog.csdn.net/qq_38870145"
>
<img
class=
"image"
src=
"@/assets/img/csdn.jpg"
<img
class=
"image"
src=
"@/assets/img/csdn.jpg"
/></a>
/></a>
</el-card>
</el-card>
</div>
</div>
<!-- 上滑滚动图标 -->
<!-- 上滑滚动图标 -->
<div
class=
"rightclass"
>
<div
class=
"rightclass"
>
...
@@ -246,6 +279,7 @@ export default {
...
@@ -246,6 +279,7 @@ export default {
'
websocket聊天
'
,
'
websocket聊天
'
,
'
echarts地图配置
'
,
'
echarts地图配置
'
,
'
vue3测试平台
'
,
'
vue3测试平台
'
,
'
数据可视化平台
'
,
'
更新中
'
'
更新中
'
],
],
md_data
:
[],
md_data
:
[],
...
@@ -435,6 +469,9 @@ export default {
...
@@ -435,6 +469,9 @@ export default {
case
'
vue3测试平台
'
:
case
'
vue3测试平台
'
:
window
.
open
(
'
http://yongma16.xyz/emoji_api/
'
)
window
.
open
(
'
http://yongma16.xyz/emoji_api/
'
)
break
break
case
'
数据可视化平台
'
:
window
.
open
(
'
https://yongma16.xyz/fund-web
'
)
break
default
:
default
:
break
break
}
}
...
@@ -648,6 +685,11 @@ el-col::-webkit-scrollbar {
...
@@ -648,6 +685,11 @@ el-col::-webkit-scrollbar {
border-radius
:
2px
;
border-radius
:
2px
;
/* display: none; */
/* display: none; */
}
}
.uni-font
{
color
:
#ff995e
;
font-weight
:
bolder
;
}
.midclass
::-webkit-scrollbar-thumb
{
.midclass
::-webkit-scrollbar-thumb
{
background
:
#ff995e
;
background
:
#ff995e
;
height
:
2px
;
height
:
2px
;
...
...
src/components/Bilicom.vue
浏览文件 @
85cea1e0
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
echarts
from
'
echarts
'
// import * as echarts from 'echarts'
export
default
{
export
default
{
name
:
'
Bilicom
'
,
name
:
'
Bilicom
'
,
data
()
{
data
()
{
...
...
src/echarts/Map.vue
浏览文件 @
85cea1e0
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
echarts
from
'
echarts
'
// import * as echarts from 'echarts'
export
default
{
export
default
{
name
:
'
Map
'
,
name
:
'
Map
'
,
data
()
{
data
()
{
...
...
src/main.js
浏览文件 @
85cea1e0
// 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.
//vue cdn
//vue cdn
import
Vue
from
'
vue
'
//
import Vue from 'vue'
import
VueRouter
from
'
vue-router
'
//
import VueRouter from 'vue-router'
import
axios
from
'
axios
'
//
import axios from 'axios'
import
hljs
from
'
highlight.js
'
//
import hljs from 'highlight.js'
import
*
as
echarts
from
'
echarts
'
//
import * as echarts from 'echarts'
import
importElementComponents
from
'
./importElement
'
//
import importElementComponents from './importElement'
import
importEchartsComponents
from
'
./importEchartsComponents
'
//
import importEchartsComponents from './importEchartsComponents'
// 样式cnd
// 样式cnd
import
'
github-markdown-css/github-markdown.css
'
//
import 'github-markdown-css/github-markdown.css'
import
'
nprogress/nprogress.css
'
//
import 'nprogress/nprogress.css'
// 无需cdn
// 无需cdn
import
useRouter
from
'
./router
'
import
useRouter
from
'
./router
'
import
cookies
from
'
vue-cookies
'
import
cookies
from
'
vue-cookies
'
...
@@ -57,11 +57,11 @@ if (env === 'production') {
...
@@ -57,11 +57,11 @@ if (env === 'production') {
// 路由
// 路由
const
router
=
useRouter
(
Vue
,
VueRouter
)
const
router
=
useRouter
(
Vue
,
VueRouter
)
// 按需引入elementui
//
//
按需引入elementui
importElementComponents
(
Vue
)
//
importElementComponents(Vue)
//
// 按需引入echarts
//
//
按需引入echarts
importEchartsComponents
(
Vue
)
//
importEchartsComponents(Vue)
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
use
(
cookies
)
Vue
.
use
(
cookies
)
...
...
src/store/index.js
浏览文件 @
85cea1e0
import
Vue
from
'
vue
'
// import Vue from 'vue'
import
Vuex
from
'
vuex
'
// import Vuex from 'vuex'
import
persistedstate
from
'
vuex-persistedstate
'
// import createLogger from '../../../src/plugins/logger'
// import createLogger from '../../../src/plugins/logger'
...
@@ -15,11 +14,6 @@ files.keys().map((key) => {
...
@@ -15,11 +14,6 @@ files.keys().map((key) => {
})
})
export
default
new
Vuex
.
Store
({
export
default
new
Vuex
.
Store
({
plugins
:
[
persistedstate
({
key
:
'
VBI
'
})
],
modules
,
modules
,
strict
:
debug
strict
:
debug
// plugins: debug ? [createLogger()] : []
// plugins: debug ? [createLogger()] : []
...
...
src/weather/EchartWeather.vue
浏览文件 @
85cea1e0
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
echarts
from
'
echarts
'
//
import * as echarts from 'echarts'
export
default
{
export
default
{
name
:
'
EchartWeather
'
,
name
:
'
EchartWeather
'
,
data
()
{
data
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录