123456789101112131415161718192021222324 |
- import ErrorView from '../../components/error-view';
- Page({
- ...ErrorView,
- data: {
- errorData: {
- type: 'empty',
- title: '什么都没有了',
- button: '返回',
- onButtonTap: 'handleBack',
- href: '/pages/list/index'
- },
- },
- handleBack() {
- my.showToast({
- content: 'back to pages/index in 1s',
- success: (res) => {
- setTimeout(() => {
- my.navigateBack();
- }, 1000);
- },
- });
- }
- })
|