lavas-project / codelab Goto Github PK
View Code? Open in Web Editor NEWCodelabs of Lavas
Codelabs of Lavas
async asyncData() {
let result = await axios(`https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%202151849&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys`);
let condition = result.data.query.results.channel.item.condition;
console.log(`Weather of Shanghai: ${this.weather.text}, ${this.weather.temp}°F`);
}
因为还没有引入vuex,所以${this.weather.text}
, ${this.weather.temp}
报错
我试了不管用
如何在非 vue 组件里引入 store 使用?
mac为什么安装不了lavas
https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%202151849&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
报错
xhr.js?ec6c:178 GET https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%202151849&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys net::ERR_NAME_NOT_RESOLVED
换一个地址?
无法访问此网站 找不到 https://query.yahooapis.com
的服务器 IP
地址。
建议更换 api
地址 (虽然只是个简单的 demo
)
module.exports = {
router: {
ssr: true, // 首屏服务端渲染
mode: 'history',
base: '/',
pageTransition: {
type: 'fade',
transitionClass: 'fade'
}
}
};
router: { ssr: true} // 首屏服务端渲染。这是什么鬼??????
ssr 不是在配置 build 里的吗
console.log(`Weather of Shanghai: ${this.weather.text}, ${this.weather.temp}°F`);
这里this不对吧 应该用 ${condition.text}, ${condition.temp} 吧
正在拉取云端数据,请稍候...(node:77974) UnhandledPromiseRejectionWarning: Error: 下载 Lavas 模版出错,请检查当前网络
我的后台接口并不是很规范的情况下怎么,m怎么代理后台接口, 没有 api 标识,如下方式代理启动后页面直接是后台的接口了,前端页面没有了
ar proxyTable = {
// proxy table example
'/': {
target: 'http://39.108.xxxx:3300/',
changeOrigin: true
}
};
如何引入vuex的plugins呢
创建页面的 "我们注意到在 和 <script> 中分别出现了 {{$route.params.id}} 和 this.route.params.id", this.route.params.id
应为 this.$route.params.id
没有/config/这个目录
lavas.config.js Not found
图片路径错误
How to add proxy on server.prod.js?
TypeError: Cannot read property 'source' of undefined
启动报错
不明确基于什么环境下安装
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.