UNPKG

vuepress-theme-aurora

Version:

A vuepress-based animation blog theme, simple, beautiful, multi-color, multiple custom functions, providing article poster sharing, talk, photo album, comment and other features 一个基于vuepress的动漫类博客主题,简洁,漂亮,多色彩,多种自定义功能,提供文章海报分享,说说,相册,评论等特色功�?

25 lines 848 B
const network = require('../network') const myData = require('@temp/my-data') let themeProperty = null module.exports = { /*getAnimeImg(context) { return new Promise((resolve,reject) => { new Promise((resolve,reject) => { for (let i = 0; i < myData.default.length; i++) { if (myData.default[i].path === '/') { themeProperty = myData.default[i].frontmatter } } resolve() }) network.req(themeProperty.animeOption).then(res => { const query = themeProperty.animeOption.query const url = res[query] context.commit('setAnimeImg', { imgUrl: url }) resolve() }) }) },*/ }