|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-04 17:11:07
|
|
|
|
* @Date: 2022-05-04 17:11:07
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-06-10 11:01:21
|
|
|
|
* @LastEditTime: 2022-06-10 14:26:57
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import { CreatUuid } from "@/plugins/utils";
|
|
|
|
import { CreatUuid } from "@/plugins/utils";
|
|
|
@ -13,7 +13,7 @@ export default function ({$axios, store, route, req}, inject) {
|
|
|
|
let uuid = store.state.uuid;
|
|
|
|
let uuid = store.state.uuid;
|
|
|
|
if (!uuid && req.headers.cookie) {
|
|
|
|
if (!uuid && req.headers.cookie) {
|
|
|
|
uuid = req.headers.cookie.split(';').find(i => i.includes(UUID_KEY));
|
|
|
|
uuid = req.headers.cookie.split(';').find(i => i.includes(UUID_KEY));
|
|
|
|
uuid = uuid.replace(`${UUID_KEY}=`,'')
|
|
|
|
uuid = uuid && uuid.replace(`${UUID_KEY}=`,'')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!uuid) {
|
|
|
|
if (!uuid) {
|
|
|
|
uuid = CreatUuid(16, 2);
|
|
|
|
uuid = CreatUuid(16, 2);
|
|
|
|