WARNING Compiled with 2 warnings16:53:28
warning in ./src/views/Auth/index.jsx?vue&type=script&lang=js
"export 'resetPassword' was not found in '@/service'
warning in ./src/views/ResetPassword?vue&type=script&lang=js
"export 'resetPassword' was not found in '@/service'
Uncaught (in promise) TypeError: Cannot read property 'list' of undefined
at _callee$ (index.js?6610:14)
at tryCatch (runtime.js?96cf:63)
at Generator.invoke [as _invoke] (runtime.js?96cf:293)
at Generator.eval [as next] (runtime.js?96cf:118)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
at _next (asyncToGenerator.js?1da1:25)
at eval (asyncToGenerator.js?1da1:32)
at new Promise (<anonymous>)
at eval (asyncToGenerator.js?1da1:21)
at getList (index.js?6610:14)
_callee$ @ index.js?6610:14
tryCatch @ runtime.js?96cf:63
invoke @ runtime.js?96cf:293
eval @ runtime.js?96cf:118
asyncGeneratorStep @ asyncToGenerator.js?1da1:3
_next @ asyncToGenerator.js?1da1:25
eval @ asyncToGenerator.js?1da1:32
eval @ asyncToGenerator.js?1da1:21
getList @ index.js?6610:14
eval @ index.js?6610:25
callWithErrorHandling @ runtime-core.esm-bundler.js?5c40:154
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js?5c40:163
hook.__weh.hook.__weh @ runtime-core.esm-bundler.js?5c40:1910
flushPostFlushCbs @ runtime-core.esm-bundler.js?5c40:333
flushJobs @ runtime-core.esm-bundler.js?5c40:369
Promise.then (async)
queueFlush @ runtime-core.esm-bundler.js?5c40:264
queueCb @ runtime-core.esm-bundler.js?5c40:286
queuePostFlushCb @ runtime-core.esm-bundler.js?5c40:292
queueEffectWithSuspense @ runtime-core.esm-bundler.js?5c40:1384
scheduler @ runtime-core.esm-bundler.js?5c40:2071
run @ reactivity.esm-bundler.js?a1e9:183
trigger @ reactivity.esm-bundler.js?a1e9:189
scheduler @ reactivity.esm-bundler.js?a1e9:819
run @ reactivity.esm-bundler.js?a1e9:183
trigger @ reactivity.esm-bundler.js?a1e9:189
scheduler @ reactivity.esm-bundler.js?a1e9:819
run @ reactivity.esm-bundler.js?a1e9:183
trigger @ reactivity.esm-bundler.js?a1e9:189
set value @ reactivity.esm-bundler.js?a1e9:729
finalizeNavigation @ vue-router.esm-bundler.js?6c02:3098
eval @ vue-router.esm-bundler.js?6c02:2971
Promise.then (async)
pushWithRedirect @ vue-router.esm-bundler.js?6c02:2942
push @ vue-router.esm-bundler.js?6c02:2886
install @ vue-router.esm-bundler.js?6c02:3251
use @ runtime-core.esm-bundler.js?5c40:2948
eval @ main.js?56d7:23
./src/main.js @ app.js:1345
__webpack_require__ @ app.js:854
fn @ app.js:151
1 @ app.js:1526
__webpack_require__ @ app.js:854
checkDeferredModules @ app.js:46
(anonymous) @ app.js:994
(anonymous) @ app.js:997
import { defineComponent, ref, onMounted } from 'vue';
import { resetPassword } from '@/service';
import { result } from '@/helpers/utils';
import { message } from 'ant-design-vue';
export default defineComponent({
setup() {
const list = ref([]);
const curPage = ref(1);
const total = ref(0);
const getList = async () => {
const res = await resetPassword.list(curPage.value);
result(res)
.success(( { list : l , total : t } ) => {
list.value = l;
total.value = t;
});
};
onMounted(() => {
getList();
});
return {
total,
list,
};
},
})