This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
qiubinghui
/
zhywpt-web
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
修改bug
master
yangpeilai
3 days ago
parent
014cd8f19a
commit
de4d2971ad
1 changed files
with
4 additions
and
0 deletions
Split View
Show Diff Stats
4
0
src/store/tabValue.ts
+ 4
- 0
src/store/tabValue.ts
View File
@@ -31,6 +31,10 @@ export default createStore<any>({
actions: {
//添加tab
addTab: function (context, value) {
if(!value){
console.log('参数错误', value)
return
}
if (value.type === 1) {
context.commit('AddTab', value.data)
} else {
Write
Preview
Loading…
Cancel
Save