goadmingroup / filemanager Goto Github PK
View Code? Open in Web Editor NEWA GoAdmin plugin help you build a private cloud disk
A GoAdmin plugin help you build a private cloud disk
右侧删除按钮,删除时:
http://127.0.0.1:8199/admin/fm/def/deleteundefined
查看代码:
$('.grid-row-delete').click(function () {
--
DeletePost($(this).data('id'), $(this).data('param'))});
function DeletePost(id, url_param) {
--
| swal({
| title: "你确定要删除吗?",
| type: "warning",
| showCancelButton: true,
| confirmButtonColor: "#DD6B55",
| confirmButtonText: "确定",
| closeOnConfirm: false,
| cancelButtonText: "取消",
| },
| function () {
| $.ajax({
| method: 'post',
| url: "/admin/fm/def/delete" + url_param,
| data: {
| id: id
| },
应该是 url_param 没有正确抓取到 参数 url_param
Can't start application
GO111MODULE=on go run main.go
GoAdmin is now running.
Running in "debug" mode. Switch to "release" mode in production.
panic: database is locked
goroutine 1 [running]:
github.com/GoAdminGroup/go-admin/plugins/admin/models.SiteModel.Init(0x117241c, 0xc, 0x162a660, 0xc0002040e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/pkg/mod/github.com/!go!admin!group/[email protected]/plugins/admin/models/site.go:60 +0x505
github.com/GoAdminGroup/go-admin/engine.(*Engine).Use(0xc000467480, 0x11571e0, 0xc000492140, 0xc0004cdb68, 0x1)
/root/go/pkg/mod/github.com/!go!admin!group/[email protected]/engine/engine.go:77 +0x2e6
main.main()
/test/filemanager/example/main.go:63 +0x785
exit status 2
.conf配置文件也比较常用
ERROR [email protected]/installation.go:193 filemanager create database table error: Unsupported driver name: postgresql
github.com/GoAdminGroup/go-admin/modules/logger.Error
/home/hoo/goprojs/pkg/mod/github.com/!go!admin!group/[email protected]/modules/logger/logger.go:285
github.com/GoAdminGroup/filemanager.(*FileManager).GetSettingPage.func1.6
/home/hoo/goprojs/pkg/mod/github.com/!go!admin!group/[email protected]/installation.go:193
github.com/GoAdminGroup/go-admin/plugins/admin/modules/table.(*DefaultTable).InsertData
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.