4.6.201910111014 • Published 5 years ago

@dfeidao/fd-an000103 v4.6.201910111014

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

检查用户权限

Installation

yarn add --dev @dfeidao/fd-an000103

Example

import check from '@dfeidao/fd-an000103';
const url = await check(fd, 'by_jxc', '3', './login.html');
if (url.redirect) {
		return redirect(url.redirect);
		// {code: 0, redirect: "./login.html?backurl=.%2Ftest.html"}
}