refactor: 为测试暴露组件内部状态
This commit is contained in:
@@ -50,6 +50,8 @@ const handleLogout = async () => {
|
||||
await router.push("/login");
|
||||
}
|
||||
};
|
||||
|
||||
defineExpose({ isLoginRoute, showBackButton, pageTitle, handleLogout });
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user