Comparing version 0.1.6 to 0.1.7
@@ -16,3 +16,6 @@ module.exports = { | ||
env: 'development' | ||
env: 'development', | ||
// 是否模拟数据 | ||
isMock: false | ||
}; |
@@ -28,3 +28,2 @@ var _ = require('lodash'), | ||
render: function(file, data) { | ||
console.log(this.req.query, Utils.isDev()); | ||
if (this.req.query.debug && Utils.isDev()) { | ||
@@ -31,0 +30,0 @@ // 开发模式下,启用debug数据功能 |
@@ -26,3 +26,3 @@ var Express = require('express'), | ||
// 开发环境使用假数据 | ||
if (Utils.c('env') === 'development') { | ||
if (Utils.isDev() && Utils.c('isMock')) { | ||
// 设置api地址为本地 | ||
@@ -29,0 +29,0 @@ Utils.c('api', 'http://127.0.0.1:' + Utils.c('port')); |
{ | ||
"name": "advanced", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A simple MVC framework based on Express", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
496
19505