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