进入
https://github.com/honraytech/VueThink
下载解压
一个是tp5后台接口 另一个是前端node 分离开来
安装好node 和 php5.6.27
进入tp5配置好数据库
安装tp5下的install.sql的数据库结构
调试tp5 可以跑通了
进入前端的 build\webpack.base.conf.js 修改内容如下
var host_http = "http://127.0.0.1:80/";//开发专用
var DEV_HOST = JSON.stringify(host_http)
var PUB_HOST = JSON.stringify('http://127.0.0.1:80/')
修改根目录下的 .eslintrc.json 这样子在win系统就不会报linebreak-style错了
"linebreak-style": "off",//["error", "windows"], // 换行风格
打开cmd 进入前端目录
执行下载运行环境 插件
npm install
执行启动前端 (实时开发动态调试)命令
npm run dev
--------------------------BUG1-----------------------------
php
92 行 application\admin\model\User.php
改成 $data['groups'] = $this->get($id);#[BUG2019.01.28]->groups;
--------------------------BUG2-----------------------------
app\admin\controller\Base 文件
public function _initialize()
{
#开始修复登录失效BUG--By:LingMax
$systemConfig = cache('DB_CONFIG_DATA');
if (!$systemConfig) {
//获取所有系统配置
$systemConfig = model('SystemConfig')->getDataList();
cache('DB_CONFIG_DATA', null);
cache('DB_CONFIG_DATA', $systemConfig, 10); //缓存配置
}
config($systemConfig);
#结束修复
parent::_initialize();
}