Skip to content

Leocat81/blog_vuecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌈 Site

线上预览地址: bl.pipef.top

🦄 Usage

本地运行

  • npm install
  • npm start 或者 npm run docs:dev

打包

  • npm run docs:build

⚠️ Warning

  • 1: 因为@vssue/api-gitee-v5 包存在问题,所以 npm 下载@vssue/api-gitee-v5 包后,需要去 node_modules 里@vssue/api-gitee-v5/lib/index.js
const {
    data
} = await this.$http.post(originalURL, { //proxyURL换为originalURL
    client_id: this.clientId,
    client_secret: this.clientSecret,
    code,
    grant_type: 'authorization_code',
    redirect_uri: window.location.href,
});
return data.access_token;
}

该问题已解决,更新 @vssue/vuepress-plugin-vssue 1.4.8 即可解决。

  • 2:应采用了dotenv读取配置文件,所以克隆代码后需要在本地新建文件.env, 然后填写gitee第三方应用的clientId, clientSecret

  • 3: 需采用https部署

  • 4:CI/CD 部署时,需提供配置文件.env,文件里需要配置giteeclientId, clientSecret, 否则无法实现评论功能。

🧱 Contribute

测试构建

欢迎大家在评论区留下自己的意见,博主会第一时��回答。.