Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
7a5159b3
提交
7a5159b3
编写于
2月 20, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
4223868a
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
3 行删除
+35
-3
httpExtension.js
src/plugins/httpExtension.js
+2
-1
index.js
src/router/index.js
+16
-2
index.vue
src/views/home/index.vue
+17
-0
未找到文件。
src/plugins/httpExtension.js
浏览文件 @
7a5159b3
...
...
@@ -17,7 +17,8 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
// 新增后置钩子
$http
.
addAfterHook
(
response
=>
{
if
(
response
.
data
.
code
!==
'000000'
)
{
if
(
response
.
code
!==
'000000'
)
{
Toast
(
response
.
data
.
message
);
}
console
.
log
(
'我是新增的后置钩子'
,
response
);
...
...
src/router/index.js
浏览文件 @
7a5159b3
...
...
@@ -3,7 +3,6 @@ import insuranceBindCode from '@/views/insurance-bind-code/insurance-bind-code';
import
insuranceDetectionDetail
from
'@/views/insurance-detection-detail/insurance-detection-detail'
;
import
insuranceBindCodeSuccess
from
'@/views/insurance-bindCode-success/insurance-bindCode-success'
;
import
handleAllRouter
from
'../public_uat'
;
const
routerConfig
=
[
{
path
:
'/insuranceBindCode'
,
...
...
@@ -56,9 +55,24 @@ const routerConfig = [
component
:
()
=>
import
(
'@/views/pdf-preview/index.vue'
),
},
];
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
const
routerMap
=
{
'0001'
:
null
,
'0101'
:
null
,
'0102'
:
null
,
'0401'
:
null
,
'0201'
:
'/appoint'
,
'0301'
:
null
,
'0302'
:
null
,
};
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
console
.
log
(
to
,
from
,
next
);
if
(
to
.
name
===
'home'
)
{
console
.
log
(
to
.
name
,
routerMap
);
}
else
{
next
();
}
});
router
.
addRoutes
(
routerConfig
);
...
...
src/views/home/index.vue
浏览文件 @
7a5159b3
<
template
>
<div>
111
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
},
};
</
script
>
<
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录