4.6.201910111014 • Published 5 years ago

@dfeidao/fd-an000102 v4.6.201910111014

Weekly downloads
8
License
MIT
Repository
-
Last release
5 years ago

判断是否登录若未登录跳转页面

Installation

yarn add --dev @dfeidao/fd-an000102

Example

import an102 from '@dfeidao/fd-an000102';

const ran102 = await an102(headers, url, './login.html');
if (ran102 === true) {
	// todo
} else {
	return ran102;
}