mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-06 15:10:29 +00:00
打包问题
This commit is contained in:
@@ -30,7 +30,7 @@ const Slug = props => {
|
||||
|
||||
/**
|
||||
* 验证文章密码
|
||||
* @param {*} result
|
||||
* @param {*} passInput
|
||||
*/
|
||||
const validPassword = passInput => {
|
||||
if (!post) {
|
||||
@@ -129,7 +129,7 @@ export async function getStaticProps({ params: { prefix }, locale }) {
|
||||
fullSlug += '.html'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 在列表内查找文章
|
||||
props.post = props?.allPages?.find(p => {
|
||||
return (
|
||||
|
||||
@@ -5,11 +5,9 @@ import Slug from '../[prefix]'
|
||||
|
||||
/**
|
||||
/**
|
||||
* 服务端接收参数处理
|
||||
* @param {*} ctx
|
||||
* @returns
|
||||
*/
|
||||
export const getServerSideProps = async ctx => {
|
||||
export const getStaticProps = async () => {
|
||||
const from = `auth`
|
||||
const props = await getGlobalData({ from })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user