forked from UzTech/Vue3-typescript-demo
fix.warnings
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export const ACCESS_TOKEN = 'Access-Token'
|
||||
@@ -68,8 +68,7 @@ router.beforeEach((to, from, next) => {
|
||||
function setDocumentTitle(meta: MyRouteMeta) {
|
||||
document.title = meta?.title
|
||||
const ua = navigator.userAgent
|
||||
// eslint-disable-next-line
|
||||
const regex = /\bMicroMessenger\/([\d\.]+)/
|
||||
const regex = /\bMicroMessenger\/([\d.]+)/
|
||||
if (regex.test(ua) && /ip(hone|od|ad)/i.test(ua)) {
|
||||
const i = document.createElement('iframe')
|
||||
i.src = '/favicon.ico'
|
||||
|
||||
@@ -69,6 +69,9 @@ export default createStore<State>({
|
||||
actions: {
|
||||
setUserInfo: ({ commit }, info: BaseInfo): void => {
|
||||
commit('setUserInfo', info)
|
||||
},
|
||||
setOpenId: ({ commit }, openId: string): void => {
|
||||
commit('setOpenId', openId)
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
|
||||
Reference in New Issue
Block a user