From 8c2b803c853d5d3f9e7a3cb645d92c1864a1e0ba Mon Sep 17 00:00:00 2001 From: RJW Date: Tue, 15 Dec 2020 11:22:45 +0800 Subject: [PATCH] fix docs type error; `+ =` => `+=` lines[renderIndex] + = `\n router,` => lines[renderIndex] += `\n router,` --- docs/zh/dev-guide/plugin-dev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/dev-guide/plugin-dev.md b/docs/zh/dev-guide/plugin-dev.md index da705390d8..b1d5432567 100644 --- a/docs/zh/dev-guide/plugin-dev.md +++ b/docs/zh/dev-guide/plugin-dev.md @@ -268,7 +268,7 @@ module.exports.hooks = (api) => { const lines = contentMain.split(/\r?\n/g) const renderIndex = lines.findIndex(line => line.match(/render/)) - lines[renderIndex] + = `\n router,` + lines[renderIndex] += `\n router,` }) } ```