切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
朱兆平
5 years ago
提交
51770d2f3e972eedecdeb31e7b553f5c4ad64021
1 个父辈
7bcd348b
菜单点击适配调整
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
26 行增加
和
4 行删除
src/main.js
src/views/Home.vue
src/main.js
查看文件 @
51770d2
...
...
@@ -108,9 +108,14 @@ axios.interceptors.response.use(
});
}
if
(
error
.
response
.
status
===
500
)
{
router
.
push
({
path
:
"/error/500"
message
({
// 饿了么的消息弹窗组件
message
:
error
.
message
,
type
:
"error"
});
// router.push({
// path: "/error/500"
// });
}
if
(
error
.
response
.
status
===
502
)
{
router
.
push
({
...
...
src/views/Home.vue
查看文件 @
51770d2
...
...
@@ -61,7 +61,7 @@
</el-col>
<el-col :span="24" class="content-wrapper">
<transition name="fade" mode="out-in">
<router-view></router-view>
<router-view
:key="$route.path +$route.query.t"
></router-view>
</transition>
</el-col>
</div>
...
...
@@ -73,12 +73,19 @@
<script>
import rt from '../routes'
export default {
provide() {
return {
reload: this.reload
}
},
data() {
return {
sysName:'易通快速通关申报管理系统',
collapsed:false,
sysUserName: '',
sysUserAvatar: '',
isRouterAlive: true,
form: {
name: '',
region: '',
...
...
@@ -92,6 +99,16 @@
}
},
methods: {
reload() {
this.$nextTick(function () {
this.$router.push({
path: this.$router.path,
query:{
t: new Date().getTime()
}
})
})
},
onSubmit() {
console.log('submit!');
},
...
...
@@ -102,7 +119,7 @@
console.log('handleclose');
},
handleselect: function (a, b) {
console.log('handleselect!');
this.reload()
},
//退出登录
logout: function () {
...
...
请
注册
或
登录
后发表评论