honraytech / vuethink Goto Github PK
View Code? Open in Web Editor NEWVueThink是一套基于Vue全家桶(Vue2.x + Vue-router2.x + Vuex)+ ThinkPHP5的前后端分离框架。
VueThink是一套基于Vue全家桶(Vue2.x + Vue-router2.x + Vuex)+ ThinkPHP5的前后端分离框架。
Demo站点中全选按钮没有效果吗,不能全选
有没有老铁 改成PHP版本的???
搭建成功了,就是有一点问题:登录成功后跳转直接是www.xx.com/users/list,只显示蓝色背景。我在vuex/routes.js里面把路径path: 'users/list' 改成path: '/users/list' ,登陆后就正常了。并且改了所有的children path。
但是总觉得这样不对,不知道该怎么办? ps:搭建后台的时候目录文件是 d:\vuethink\php
如题。谢谢
如localhost/webserver, 我用的是apache放在webserver这个文件夹下面,这样能怎么改?
本人有多年开发经营,熟悉tp\ci\yii\phlcon框架等.
申请成为该开源项目贡献者,并进行维护.
contact me
XMLHttpRequest cannot load http://localhost/admin/base/getConfigs. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. http.js?fff4:22 f Error: Network Error at createError (eval at <anonymous> (app.js:1452), <anonymous>:15:15) at XMLHttpRequest.handleError (eval at <anonymous> (app.js:1434), <anonymous>:87:14) http.js?fff4:104 default error getVerify:1 GET http://localhost/admin/base/getVerify 404 (Not Found)
Access-Control-Allow-Origin 跨域的问题如何解决?谢谢...
[root@localhost frontEnd]# npm install
[email protected] /vagrant/frontEnd
鈹斺攢鈹� (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] No repository field.
npm ERR! Linux 3.10.0-229.el7.x86_64
npm ERR! argv "/root/git/versions/node/v6.10.3/bin/node" "/root/git/versions/node/v6.10.3/bin/npm" "install"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! path ../acorn/bin/acorn
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/vagrant/frontEnd/node_modules/.bin/acorn'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /vagrant/frontEnd/npm-debug.log
npm ERR! code 1
当我进行跨域请求时(OPTIONS方法),就会提示我 405 Not Allowed,感觉在PHP中设置的header并没有起作用。我想肯定时nginx拦截了请求。但是假如我自己修改nginx配置的话,那肯定没有PHP header函数方便。我想问下,咱们的demo网站是如何处理这个问题的?因为我看到咱们也是用的Ngxin。希望得到回答,谢谢~
下面是我在本地使用telnet模拟发送http options 请求得到的结果:
OPTIONS / HTTP/1.1
Host: www.test.com
HTTP/1.1 405 Not Allowed
Server: nginx
Date: Mon, 07 May 2018 09:11:50 GMT
Content-Type: text/html
Content-Length: 166
Connection: keep-alive
<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx</center>
</body>
</html>
报网络超时, 本地怎么还超时,请求解答
tp5.1能跑起来?一大堆错误
我本地用的是windows系统
本地运行前端 执行 npm run dev 会报如上错误
我已经找到解决办法
http://www.wuyfdevo.com/archives/378
windows下安装的php7.2版本有mcypt这个扩展吗
我想把登陆后的某个链接改成我写的网页,怎么改呢?
既然是前后端分离,为什么前端运行非要依赖后端呢?比如只想看看前端.
我看你的mackdown里面提示的要运行前端必须要搭建后端.
演示地址:http://demo.vuethink.com 不能登录。弹出提示没有权限
已经按照要求配置了
axios.defaults.baseURL = 'http://127.0.0.1/VueThink/php/index.php/'
window.HOST = 'http://127.0.0.1/VueThink/php/index.php/'
但登录时还是出现跨域问题,是什么原因啊?
Failed to load http://127.0.0.1/VueThink/php/index.php/admin/base/login: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
如题,http://api.vuethink.com/ 这个接口文档看起来像用一些自动化工具生成的,请问大佬用的什么工具,thx
index.php入口文件
// namespace think;
// // 加载基础文件
// require DIR . '/../thinkphp/base.php';
// // 支持事先使用静态方法设置Request对象和Config对象
// // 执行应用并响应
// Container::get('app')->run()->send();
但执行访问,报错了
方法不存在: app\common\behavior\InitConfigBehavior::run()
下载zip后, yarn insatll安装。
然后运行 npm run build.
然后将dist目录下的 index.html 和 static文件夹 放到tomcat或apache服务器目录下。
访问程序,界面无内容。
npm run dev 开发版正常
能请问一下axios在开发过程中的跨域是怎么解决的吗,我thinkphp端直接用的php自带的web服务器,post会出现跨域问题
为什么不用 extends ApiCommon
不要验证是否登录就进行上传,这样安全吗?
有解决吗?
我知道 这个项目也挺不容易的 但是 拜托能不能出个目录结构或说明文档 这么多问题 都懒的看 好多问题都不知道怎么解决 登录以后报 default error
这个怎么解决 ?
谷歌,火狐都是如此
我发现任何页面的编辑和提交之后都会出现这错误,貌似是goback()这个原因导致的,
当我试着点击浏览器的后退按钮时,果然这错误又出现了
[Vue warn]: Error in destroyed hook: (found in <ElScrollbar>) warn @ vue.js?3de6:564 handleError @ vue.js?3de6:1449 callHook @ vue.js?3de6:2281 Vue.$destroy @ vue.js?3de6:2101 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 invokeDestroyHook @ vue.js?3de6:4778 patch @ vue.js?3de6:5039 Vue.$destroy @ vue.js?3de6:2099 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 patch @ vue.js?3de6:5039 Vue.$destroy @ vue.js?3de6:2099 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 invokeDestroyHook @ vue.js?3de6:4778 patch @ vue.js?3de6:5039 Vue.$destroy @ vue.js?3de6:2099 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 invokeDestroyHook @ vue.js?3de6:4778 invokeDestroyHook @ vue.js?3de6:4778 patch @ vue.js?3de6:5039 Vue.$destroy @ vue.js?3de6:2099 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 invokeDestroyHook @ vue.js?3de6:4778 patch @ vue.js?3de6:5039 Vue.$destroy @ vue.js?3de6:2099 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 invokeDestroyHook @ vue.js?3de6:4778 patch @ vue.js?3de6:5039 Vue.$destroy @ vue.js?3de6:2099 destroy @ vue.js?3de6:2964 invokeDestroyHook @ vue.js?3de6:4773 removeVnodes @ vue.js?3de6:4789 patch @ vue.js?3de6:5111 Vue._update @ vue.js?3de6:2046 updateComponent @ vue.js?3de6:2162 get @ vue.js?3de6:2471 run @ vue.js?3de6:2541 flushSchedulerQueue @ vue.js?3de6:2335 (anonymous) @ vue.js?3de6:511 nextTickHandler @ vue.js?3de6:460 vue.js?3de6:1453 TypeError: Cannot read property '__resizeListeners__' of undefined
默认的那个admin密码是多少?
登录策略是用localStorage存储TOKEN来支持跨域吗?
npm run dev 报错
ERROR in .//babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./src/components/Home.vue
Module not found: Error: Cannot resolve 'file' or 'directory' ./account/changePwd.vue in /opt/lampp/htdocs/frontEnd/src/components
@ .//babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./src/components/Home.vue 11:17-51
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.47 MB 0
webpack: Failed to compile.
把element更新1.4.2之后,全选可以了,但是菜单管理里面的添加菜单中绑定权限标识点击查找就无法显示出来了,请问一下怎么解决
return request({
url: '/admin/base/login',
method: 'post',
data
})
VUE中的这种就没问题。
通过await axios.get('http://localhost:80/admin/base/login').then(response => {
访问API接口,调不到,求解啊
总会出现一些问题
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.