03 2025 档案
摘要:拷贝 default.conf 文件 修改端口和路径 重启 nginx服务
阅读全文
摘要:其实大多数403错误,都主要是因为 nginx 没有网站资源目录的权限,所以为了安全起见,我们通常都不会将 nginx工作用户改成 root,而是去赋予网站资源目录权限 我们先去看下网站资源目录的权限 都是777权限,这是因为我之前给它提权过。 咦不对啊,明明已经改成777权限了,怎么还是不行? 不
阅读全文
摘要:vite.config.ts 设置 open的值即可 server: { host: "0.0.0.0", port: +env.VITE_APP_PORT, open: false, proxy: { // 代理 /dev-api 的请求 [env.VITE_APP_BASE_API]: { ch
阅读全文
摘要:初始化mod 开启Go Modules功能 go env -w GO111MODULE=on 生成go.mod文件 go mod init [项目文件夹名称] go mod init <项目目录名称> //初始化模块,自动生成go.mod文件 go mod download [path@versio
阅读全文
摘要:const book = { ... actions: { mergeBook({ state, commit }, data: any) { return axios.patch(`/books/merge`, data) .then((res: any) => { return res; });
阅读全文
摘要://判断用户是否在系统中,如果不在,跳转到NoAccess页面 var attrs = filterContext.ActionDescriptor.GetCustomAttributes(true); if (attrs.Any(c => c.GetType() == typeof(AllowAn
阅读全文
摘要:安装 "devextreme": "^24.2.5", "devextreme-vue": "^24.2.5", 引用 import 'devextreme/dist/css/dx.common.css'; import 'devextreme/dist/css/dx.material.lime.l
阅读全文
摘要:OR Expression<Func<Inventory, bool>> expression = c => 1 == 1; Expression<Func<Inventory, bool>> expression1 = c => cnPlants.Contains(c.Plant) && (c.S
阅读全文