Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
🔥 去除map
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jan 6, 2021
1 parent dd2f601 commit 7a51115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export default {
methods:{
async checkBackUpdate(){
getBackLatest().then(res=>{
if(res.data.tag_name!=this.version){
if(res.data.tag_name!=this.info.version){
this.$notify.open({
message: '发现新版本',
description:
Expand Down Expand Up @@ -257,7 +257,7 @@ export default {
if (res.meta.code==200) {
this.info=res.data
if(res.data.check_update){
this.checkBackUpdate()
// this.checkBackUpdate()
this.checkWebUpdate()
}
if (res.data.title && res.data.title!="") {
Expand Down
2 changes: 2 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module.exports = {
assetsDir: 'static',
//指定生成的 index.html 的输出路径
indexPath: 'index.html',
//去除map
productionSourceMap:false,
devServer: {
port: 5277,
proxy: {
Expand Down

1 comment on commit 7a51115

@vercel
Copy link

@vercel vercel bot commented on 7a51115 Jan 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.