Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
40c7afd6
Commit
40c7afd6
authored
Nov 22, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f9b77fb7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
App.vue
src/App.vue
+5
-1
injectKey.ts
src/types/injectKey.ts
+2
-1
index.vue
src/views/Editor/index.vue
+2
-1
Index.vue
src/views/Market/Index.vue
+12
-11
No files found.
src/App.vue
View file @
40c7afd6
...
...
@@ -8,19 +8,23 @@
</
template
>
<
script
lang=
"ts"
setup
>
import
{
onMounted
,
ref
}
from
'vue'
import
{
onMounted
,
ref
,
provide
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
useScreenStore
,
useMainStore
,
useSnapshotStore
}
from
'@/store'
import
{
LOCALSTORAGE_KEY_DISCARDED_DB
}
from
'@/configs/storage'
import
{
deleteDiscardedDB
}
from
'@/utils/database'
import
{
isPC
,
query
}
from
'./utils/common'
import
{
userStore
}
from
'./store/user'
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
import
Editor
from
'./views/Editor/index.vue'
import
Screen
from
'./views/Screen/index.vue'
import
Mobile
from
'./views/Mobile/index.vue'
import
Market
from
'./views/Market/Index.vue'
const
searchData
=
ref
({}
as
any
)
provide
(
injectKeyTemplate
,
searchData
)
const
isFinish
=
ref
(
false
)
const
userLoginHandler
=
async
()
=>
{
let
param
=
query
()
...
...
src/types/injectKey.ts
View file @
40c7afd6
...
...
@@ -11,3 +11,4 @@ export const injectKeySlideScale: InjectionKey<SlideScale> = Symbol()
export
const
injectKeySlideId
:
InjectionKey
<
SlideId
>
=
Symbol
()
export
const
injectKeyRadioGroupValue
:
InjectionKey
<
RadioGroupValue
>
=
Symbol
()
export
const
injectKeyDataSource
:
InjectionKey
<
SlideDataSource
>
=
Symbol
()
export
const
injectKeyTemplate
:
InjectionKey
<
SlideDataSource
>
=
Symbol
()
\ No newline at end of file
src/views/Editor/index.vue
View file @
40c7afd6
...
...
@@ -35,7 +35,7 @@ import { storeToRefs } from 'pinia'
import
{
useMainStore
}
from
'@/store'
import
useGlobalHotkey
from
'@/hooks/useGlobalHotkey'
import
usePasteEvent
from
'@/hooks/usePasteEvent'
import
{
injectKeyDataSource
}
from
'@/types/injectKey'
import
{
injectKeyDataSource
,
injectKeyTemplate
}
from
'@/types/injectKey'
import
{
useSlidesStore
}
from
'@/store'
import
EditorHeader
from
'./EditorHeader/index.vue'
...
...
@@ -51,6 +51,7 @@ import Modal from '@/components/Modal.vue'
import
DataaSource
from
'./DataaSource/index.vue'
import
ConfigService
from
'@/services/ConfigService'
// inject(injectKeyTemplate).TempId?inject(injectKeyTemplate).TempId:
const
datas
=
reactive
({
DataSource
:{
pageType
:
1
,
//1基础 2酒店 3景 4餐
...
...
src/views/Market/Index.vue
View file @
40c7afd6
...
...
@@ -62,18 +62,13 @@
</template>
<
script
setup
lang=
"ts"
>
import
{
reactive
,
ref
}
from
"vue"
;
import
{
reactive
,
ref
,
inject
}
from
"vue"
;
import
LineService
from
'@/services/LineService'
import
ConfigService
from
'@/services/ConfigService'
import
{
userStore
}
from
"@/store/user"
;
import
{
storeToRefs
}
from
"pinia"
;
import
{
userStore
}
from
"@/store/user"
;
import
{
useScreenStore
}
from
"@/store/screen"
;
import
{
storeToRefs
}
from
"pinia"
;
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
const
{
userInfo
...
...
@@ -95,11 +90,17 @@
pageCount
:
0
,
//总页数
})
const
searchData
=
ref
({}
as
any
)
searchData
.
value
=
inject
(
injectKeyTemplate
)
const
marketStore
=
useScreenStore
()
const
{
screening
,
market
}
=
storeToRefs
(
useScreenStore
())
/**
* 页面跳转
*/
const
goToTemplate
=
(
item
:
any
)
=>
{
console
.
log
(
"item"
,
item
);
// searchData.value.TempId = item.TempId
marketStore
.
setMarket
(
!
market
)
// console.log("item", item.TempId);
}
/***
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment