Skip to content

Commit 660e5f8

Browse files
author
施伟达
committed
备案号
1 parent da9093d commit 660e5f8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

public/r

Whitespace-only changes.

src/modules/index/components/footer.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<a class="green" href="https://github.com/sweida/vue-blog-index" target="_blank">Vue</a>
1919
</p>
2020
<p>© 2018 - {{year}} &nbsp;&nbsp;天行九歌 &nbsp;&nbsp;
21-
<a href="https://beian.miit.gov.cn/" target="_blank" style="color: #fff">{{ ICP }}</a>
21+
<a href="https://beian.miit.gov.cn/" target="_blank" style="color: #fff">{{ webInfo.icp || ICP}}</a>
2222
</p>
2323

2424
</div>
2525
</footer>
2626
</template>
2727

2828
<script>
29-
29+
import { mapActions, mapGetters } from 'vuex'
3030

3131
export default {
3232
data () {
@@ -36,6 +36,9 @@ export default {
3636
ICP: '粤ICP备2024211741号'
3737
}
3838
},
39+
computed: {
40+
...mapGetters(['webInfo']),
41+
},
3942
beforeMount() {
4043
setInterval(getRemainderTime, 1000)
4144

src/utils/httpIndex.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import store from "../store/index"
77
// 配置开发和生产的请求接口
88
const service = axios.create({
99
// baseURL: baseURL.api_url,
10-
timeout: 10000
10+
timeout: 20000
1111
})
1212

1313
// 设置header请求头,发起请求前做的事情
@@ -27,7 +27,6 @@ service.interceptors.request.use(
2727

2828
// respone拦截器,发起请求后做的事情
2929
service.interceptors.response.use((res) => {
30-
console.log('response axios', res);
3130
// 当有新的token时自动更新新的token
3231
if (res.headers.authorization) {
3332
let token = res.headers.authorization.split(' ')[1]
@@ -38,7 +37,6 @@ service.interceptors.response.use((res) => {
3837
// 统一处理错误
3938
// 在这里对返回的数据进行处理
4039
if (res.data.status == 'success') {
41-
console.log(res.data, 'asxios');
4240
// return res.data
4341
return Promise.resolve(res.data)
4442
} else {

0 commit comments

Comments
 (0)