diff --git a/README.md b/README.md index 3a8ab9d4..4ad35e58 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ The core idea of this plugin is: `Everything is a Page` . You can set a page to /p/[id] - Regular Link /post/[id] - Regular Link ----------------------------------------------------------------------------------- + /link/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" /doc/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" /article/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" - /share/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" /x/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" /a/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" /d/[id] - VIP Exclusive Link, "Only used when deploying in VIP Service Provider mode" diff --git a/README_zh_CN.md b/README_zh_CN.md index f161186c..975c38b2 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -17,9 +17,9 @@ /p/[id] - 普通链接 /post/[id] - 普通链接 ----------------------------------------------------------------------------------- + /link/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 /doc/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 /article/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 - /share/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 /x/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 /a/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 /d/[id] - VIP 专属链接,「仅 VIP 服务商模式部署时使用」 diff --git a/components/static/Detail.vue b/components/static/Detail.vue index dcc142df..0461df9c 100644 --- a/components/static/Detail.vue +++ b/components/static/Detail.vue @@ -46,7 +46,6 @@ const props = defineProps({ }) const logger = createAppLogger("static-share-page") -const env = useRuntimeConfig() const { t } = useI18n() const route = useRoute() const id = props.pageId ?? ((route.params.id ?? "") as string) diff --git a/composables/useAuthModeFetch.ts b/composables/useAuthModeFetch.ts index 5657d39d..9f08691d 100644 --- a/composables/useAuthModeFetch.ts +++ b/composables/useAuthModeFetch.ts @@ -65,7 +65,8 @@ export const useAuthModeFetch = () => { }) const resJson = await res.json() if (resJson.code === 0) { - resText = JSON.stringify(resJson.data) + const dataJson = JSON.parse(resJson.data) + resText = JSON.stringify(dataJson.post) } else { ElMessage.error("文档获取失败,错误信息如下=>" + resJson.msg) } @@ -108,7 +109,7 @@ export const useAuthModeFetch = () => { } const fetchConfig = async (filename: string, providerMode: boolean): Promise => { - console.log("providerMode=>",providerMode) + console.log("providerMode=>", providerMode) let resText: string if (providerMode) { logger.info(`fetch config text ${filename} in provider mode`) diff --git a/pages/share/[id].vue b/pages/a/[id].vue similarity index 100% rename from pages/share/[id].vue rename to pages/a/[id].vue diff --git a/pages/article/[id].vue b/pages/article/[id].vue new file mode 100644 index 00000000..aaa1361f --- /dev/null +++ b/pages/article/[id].vue @@ -0,0 +1,33 @@ + + + + diff --git a/pages/d/[id].vue b/pages/d/[id].vue new file mode 100644 index 00000000..aaa1361f --- /dev/null +++ b/pages/d/[id].vue @@ -0,0 +1,33 @@ + + + + diff --git a/pages/doc/[id].vue b/pages/doc/[id].vue new file mode 100644 index 00000000..aaa1361f --- /dev/null +++ b/pages/doc/[id].vue @@ -0,0 +1,33 @@ + + + + diff --git a/pages/link/[id].vue b/pages/link/[id].vue new file mode 100644 index 00000000..aaa1361f --- /dev/null +++ b/pages/link/[id].vue @@ -0,0 +1,33 @@ + + + + diff --git a/pages/x/[id].vue b/pages/x/[id].vue new file mode 100644 index 00000000..aaa1361f --- /dev/null +++ b/pages/x/[id].vue @@ -0,0 +1,33 @@ + + + +