首页
关于
壁纸
直播
留言
友链
统计
Search
1
《三国志英杰传》攻略
6,130 阅读
2
Emby客户端IOS破解
5,999 阅读
3
白嫖Emby
5,981 阅读
4
《吞食天地1》金手指代码
5,281 阅读
5
破解emby-server
4,240 阅读
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
登录
Search
标签搜索
ubuntu
mysql
openwrt
zerotier
springboot
centos
openvpn
jdk
吞食天地2
synology
spring
idea
windows11
吞食天地1
transmission
google-play
Japanese
xcode
群晖
kiftd
MoonjerX
累计撰写
375
篇文章
累计收到
464
条评论
首页
栏目
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
页面
关于
壁纸
直播
留言
友链
统计
搜索到
69
篇与
develop
的结果
2021-10-10
store基本用法
store.js写法import Vue from 'vue' import Vuex from 'vuex' import Index from './modules/index.js' Vue.use(Vuex) module.exports = new Vuex.Store({ state: {}, getters: {}, // 实时监听state值的变化(最新状态) modules: { Index }, mutations: {} // 这个对象里面可以放改变state的初始值的方法 })modules模块index.js写法const state = { loginFormOP: { show: false }, } const getters = { getLoginFormOP: state => { return state.loginFormOP } } const actions = {} const mutations = { setLoginFormOP: (state, o) => { state.loginFormOP = o; } } module.exports = { state, getters, actions, mutations }store属性使用(vuex 中store的数据需要放到computed 里面才能同步更新视图)computed: { loginFormOP() { return this.$store.state.Index.loginFormOP//或者this.$store.getters.getLoginFormOP }, },store属性修改this.$store.commit('setLoginFormOP', { show: true })
2021年10月10日
141 阅读
0 评论
0 点赞
2021-10-10
更新vuex store数据后视图没有同步更新
store state/detail/index.jsconst state = { id:0, playUrl:'b' }; const getters = {}; const actions = {}; const mutations = { setPlayUrl(state,url){ state.playUrl = url; // state.url = url; } }; export default { namespaced: true, state, getters, actions, mutations };index.jsimport Vue from 'vue'; import Vuex from 'vuex'; import Detail from './songDetail/index' Vue.use(Vuex); const state = {}; const actions = {}; const mutations = {}; const store = new Vuex.Store({ modules: { detail:Detail }, actions, state, mutations }); export default store;pageA:触发mutation:_this.$store.commit('detail/setPlayUrl',data.data.data);//存vuexpageB:展示数据:<template> <div class="bottom"> {{a}} <audio v-bind:src="getPlayUrl" controls="controls"> Your browser does not support the audio element. </audio> </div> </template> <script> export default { name: "index", data(){ return { // url:this.$store.state.detail.playUrl, //如果这样写的话会更新不了 a:'1', //这个在本组件里面的数据就可以更新 这个a 在created生命周期后三秒改变值就可以更新视图 } }, computed:{ //这里需要把store 动态的数据放到computed里面才会同步更新 视图 getPlayUrl(){ return this.$store.state.detail.playUrl } }, created() { // console.log('url',this.url); let _this = this; setTimeout(function () { _this.a = 10; },3000) } } </script> <style scoped> .bottom{ position: absolute; bottom: 0; left: 0; width: 100%; } </style>刚开始是没有放到computed 里面的(被我注释掉的部分) 视图没有同步更新 后来改成来以上代码就可以更新啦结论:1.本组件内data的数据和prop传递过来的数据能同步双向绑定和更新视图2.vuex 中store的数据需要放到computed 里面才能同步更新视图
2021年10月10日
187 阅读
0 评论
0 点赞
2021-09-23
遇到pom报错Parent 'Unkown:Unkown:Unkown' has problems
问题描述:project和parent标签均报错飘红删除用户目录下的idea缓存文件:
2021年09月23日
403 阅读
0 评论
1 点赞
2021-09-03
uniapp实现直播和聊天室功能
https://blog.csdn.net/weixin_48887577/article/details/110655382
2021年09月03日
116 阅读
0 评论
0 点赞
2021-09-03
Spring定时任务注解用法
注解形式:@Scheduled(cron = "0 0 8 * * ?")定时任务规则://每隔5秒执行一次:*/5 * * * * ? //每隔1分钟执行一次:0 */1 * * * ? //每天23点执行一次:0 0 23 * * ? //每天凌晨1点执行一次:0 0 1 * * ? //每月1号凌晨1点执行一次:0 0 1 1 * ? //每月最后一天23点执行一次:0 0 23 L * ? //每周星期天凌晨1点实行一次:0 0 1 ? * L //在26分、29分、33分执行一次:0 26,29,33 * * * ? //每天的0点、13点、18点、21点都执行一次:0 0 0,13,18,21 * * ? //每周一早上10点:0 00 10 ? * MON
2021年09月03日
87 阅读
0 评论
0 点赞
1
...
10
11
12
...
14
您的IP: