luoyunchong / lin-cms-vue Goto Github PK
View Code? Open in Web Editor NEWThis project forked from talelin/lin-cms-vue
🔆A simple and practical CMS implemented by Vue 增加CMS博客模块
Home Page: https://cms.igeekfan.cn/
License: MIT License
This project forked from talelin/lin-cms-vue
🔆A simple and practical CMS implemented by Vue 增加CMS博客模块
Home Page: https://cms.igeekfan.cn/
License: MIT License
重现步骤(可选):
使用el-date-picker组件,代码如下
<el-form-item label="购买日期" prop="date_purchased">
<el-date-picker
v-model="form.date_purchased"
type="date"
placeholder="选择购买日期"
:picker-options="pickerOptions"
>
</el-date-picker>
期望的结果是什么?
后端收到正确的日期
实际的结果是什么?
我选择2022-05-20,后端收到的是减少了8小时的结果(2022-05-19 16:00:00.000),貌似是UTC时间
在网上查了下解决方案,
watch: {
"date_purchased"(val) {
this.date_purchased = '' + val
},
},
实测:无效
vue的mounted和created被设计为有先后次序的同步调用,created应该先于mounted执行。
但是在本框架里,所有的api wrapper(例如src/plugin/base/model/base.js)被设计为async,导致mounted和created必须被说明为async,导致mounted在created结束之前就开始执行。结果是在mounted里无法正常获取通过created初始化的数据。
例子见article-form
描述你希望的支持的新功能?
你期望的 API 是怎样的?
描述你希望的支持的新功能?
你期望的 API 是怎样的?
get /v1/article 随笔列表页
post /v1/article 新增随笔
put /v1/article/{id} 修改随笔
get /v1/article/{id} 随笔详情
新年好。
环境: win10 + node 18.17.0
重现步骤(可选):
1、lin-cms-dotnetcore 端仅修正 ConnectionStrings, 其他不做更改,直接以 vs2022 运行。
2、lin-cms-vue 端以 PowerShell 执行:
npm install -g pnpm
pnpm install
pnpm run serve
控制台显示警告: [@vue/compiler-sfc] :deep usage as a combinator has been deprecated. Use :deep() instead of :deep , 无其他错误提示。
3、浏览器打开 http://localhost:8080/, 正常登录后台
4、将左侧所有(子)菜单挨个点击一遍,查看页面显示内容
期望的结果是什么?
所有页面正常显示其对应信息。
实际的结果是什么?
大部分页面显示正常,部分页面脚本错误
错误页面对应菜单和错误:
1、权限管理-用户管理-用户列表,对应错误:
Uncaught runtime errors:
Cannot read properties of undefined (reading '$on')
2、权限管理-分组管理,对应错误:
ERROR
ResizeObserver loop completed with undelivered notifications.
ERROR
Cannot read properties of undefined (reading '$on')
3、工作台-随笔管理,对应错误:
Uncaught runtime errors:
ResizeObserver loop completed with undelivered notifications.
4、 this.eventBus.$on() 似乎需要审核下用法。
5、还有 async 修饰有些地方似乎用的不太恰当?
希望能抽时间修复下,感谢。
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.