diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index b68e7e1ce921e4f05b916475015331a29f454d07..ad81f73b265751db85b76a6bd9fd6be800ad4b84 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -20,7 +20,7 @@ const env = let externalModules = {} //cdn 配置 let externalConfig = [] -if (process.env.NODE_ENV === 'production') { +if (process.env.NODE_ENV === 'production' && false) { //生产环境 externalModules = { vue: 'Vue', diff --git a/index.html b/index.html index 83668c4813f82c99bffb83699bf165f86c528530..ed8b38c31546f9d1b15670aaba8d38d2578582f5 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,10 @@ diff --git a/src/App.vue b/src/App.vue index 59eeced3a8ea4dfe4941a011b8f9cbeb1d26809a..13ed6c4ed5263c50ab9c0f443d71363cef766ea6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,9 +26,7 @@ stay hungry @@ -82,6 +80,16 @@
+ + + 注销 + + + + +
@@ -159,7 +168,7 @@ export default { currentUserName: function () { return store.state.user.userInfo && store.state.user.userInfo.name ? store.state.user.userInfo.name - : '游客' + : '' } }, mounted () { @@ -285,6 +294,10 @@ export default { .catch((error) => { throw Error(error) }) + }, + loginOut () { + localStorage.removeItem('yma16siteUserInfo') + window.location.reload() } } } diff --git a/src/components/user/Login.vue b/src/components/user/Login.vue index 0aa4fccfd4cce65c726c23353131239715e51046..46d7605590e37a5112c6bcb4f613402b3cefd5e1 100644 --- a/src/components/user/Login.vue +++ b/src/components/user/Login.vue @@ -44,13 +44,13 @@
微软登录(测试中)微软登录(alpha)
QQ登录(测试中)QQ登录(alpha)
diff --git a/src/components/weather/EchartWeather.vue b/src/components/weather/EchartWeather.vue index d6834446fbc0fccee8f8a3aca7934dc61b8786b3..804d1a463835567cb908285b0fe4939ddea257ba 100644 --- a/src/components/weather/EchartWeather.vue +++ b/src/components/weather/EchartWeather.vue @@ -15,7 +15,7 @@