Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-08 15:45:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3702d4012412cfc2d6d725f214b196e1fe4d0867
3702d401
1 parent
df62b013
🐞 fix(书籍-作品列表): 修复方言切换导致的空页提示出现,router的传值写法优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/composables/useVideoList.js
src/views/client/bookDetail.vue
src/composables/useVideoList.js
View file @
3702d40
...
...
@@ -2,8 +2,10 @@ import { ref } from 'vue'
import
axios
from
'@/utils/axios'
;
import
_
from
'lodash'
import
{
Toast
}
from
'vant'
;
import
{
useRoute
}
from
'vue-router'
export
const
useVideoList
=
(
$route
)
=>
{
export
const
useVideoList
=
()
=>
{
const
$route
=
useRoute
();
// 切换视频语言
const
checkMandarin
=
ref
(
true
);
// 普通话选项卡
const
checkLocalism
=
ref
(
false
);
// 方言选项卡
...
...
@@ -120,8 +122,8 @@ export const useVideoList = ($route) => {
// 空数据提示
if
(
!
prod_list
.
value
.
length
)
{
finishedTextStatus
.
value
=
false
;
emptyStatus
.
value
=
true
;
}
emptyStatus
.
value
=
Object
.
is
(
prod_list
.
value
.
length
,
0
);
}
else
{
// tslint:disable-next-line: no-console
console
.
warn
(
res
);
...
...
src/views/client/bookDetail.vue
View file @
3702d40
...
...
@@ -134,7 +134,7 @@ resetScrollTop('scrollTop');
const $route = useRoute();
const $router = useRouter();
const { toggleLanguage, onLoad, columns, prod_list, finished, loading, bookInfo, showPicker, checkLocalism, checkMandarin, onConfirm, chooseLanguage, finishedTextStatus, emptyStatus } = useVideoList(
$route
);
const { toggleLanguage, onLoad, columns, prod_list, finished, loading, bookInfo, showPicker, checkLocalism, checkMandarin, onConfirm, chooseLanguage, finishedTextStatus, emptyStatus } = useVideoList();
const { userInfo } = useDefaultPerf($route.query.id);
const donateInfo = ref({})
...
...
Please
register
or
login
to post a comment