File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
frontend/src/views/embedded Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -137,12 +137,16 @@ onBeforeMount(async () => {
137137 const online = route .query .online
138138 setFormatOnline (online )
139139
140+ let userFlag = route .query .userFlag
141+ if (userFlag && userFlag === ' 1' ) {
142+ userFlag = ' 100001'
143+ }
140144 const now = Date .now ()
141145 assistantStore .setFlag (now )
142146 assistantStore .setId (assistantId ?.toString () || ' ' )
143147 const param = {
144148 id: assistantId ,
145- virtual: assistantStore .getFlag ,
149+ virtual: userFlag || assistantStore .getFlag ,
146150 online ,
147151 }
148152 validator .value = await assistantApi .validate (param )
Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ onBeforeMount(async () => {
122122 if (name ) {
123123 assistantName .value = decodeURIComponent (name .toString ())
124124 }
125+ let userFlag = route .query .userFlag
126+ if (userFlag && userFlag === ' 1' ) {
127+ userFlag = ' 100001'
128+ }
125129 const now = Date .now ()
126130 assistantStore .setFlag (now )
127131 assistantStore .setId (assistantId ?.toString () || ' ' )
@@ -132,7 +136,7 @@ onBeforeMount(async () => {
132136 }
133137 const param = {
134138 id: assistantId ,
135- virtual: assistantStore .getFlag ,
139+ virtual: userFlag || assistantStore .getFlag ,
136140 online ,
137141 }
138142 validator .value = await assistantApi .validate (param )
You can’t perform that action at this time.
0 commit comments