parent
9fbf2bcb7d
commit
d37541d1ad
@ -0,0 +1,16 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="CssUnknownProperty" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
|
<option name="myCustomPropertiesEnabled" value="true" />
|
||||||
|
<option name="myIgnoreVendorSpecificProperties" value="false" />
|
||||||
|
<option name="myCustomPropertiesList">
|
||||||
|
<value>
|
||||||
|
<list size="1">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="marginleft" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</inspection_tool>
|
||||||
|
</profile>
|
||||||
|
</component>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,152 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="AutoImportSettings">
|
||||||
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
|
</component>
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="dc5c5f4b-3a26-4616-b023-f4f048553ff8" name="Changes" comment="">
|
||||||
|
<change afterPath="$PROJECT_DIR$/middleware/auth.ts" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/assets/style/public.scss" beforeDir="false" afterPath="$PROJECT_DIR$/assets/style/public.scss" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/components/Header/Index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/components/Header/Index.vue" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/composables/useUserInfo.ts" beforeDir="false" afterPath="$PROJECT_DIR$/composables/useUserInfo.ts" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/layouts/tabLayout.vue" beforeDir="false" afterPath="$PROJECT_DIR$/layouts/tabLayout.vue" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/nuxt.config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/nuxt.config.ts" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/comment.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/comment.vue" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/index.vue" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/translate.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/translate.vue" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pages/warning.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/warning.vue" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/utils/http.ts" beforeDir="false" afterPath="$PROJECT_DIR$/utils/http.ts" afterDir="false" />
|
||||||
|
</list>
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="FileTemplateManagerImpl">
|
||||||
|
<option name="RECENT_TEMPLATES">
|
||||||
|
<list>
|
||||||
|
<option value="vue3" />
|
||||||
|
<option value="Vue Single File Component" />
|
||||||
|
<option value="TypeScript File" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="MarkdownSettingsMigration">
|
||||||
|
<option name="stateVersion" value="1" />
|
||||||
|
</component>
|
||||||
|
<component name="ProblemsViewState">
|
||||||
|
<option name="selectedTabId" value="CurrentFile" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectId" id="2MjTN74LI0n1OsXZwajBOlsAacO" />
|
||||||
|
<component name="ProjectViewState">
|
||||||
|
<option name="autoscrollToSource" value="true" />
|
||||||
|
<option name="compactDirectories" value="true" />
|
||||||
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
|
<option name="showLibraryContents" value="true" />
|
||||||
|
<option name="sortByType" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">{
|
||||||
|
"keyToString": {
|
||||||
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
|
"WebServerToolWindowFactoryState": "true",
|
||||||
|
"WebServerToolWindowPanel.toolwindow.highlight.mappings": "true",
|
||||||
|
"WebServerToolWindowPanel.toolwindow.highlight.symlinks": "true",
|
||||||
|
"WebServerToolWindowPanel.toolwindow.show.date": "false",
|
||||||
|
"WebServerToolWindowPanel.toolwindow.show.permissions": "false",
|
||||||
|
"WebServerToolWindowPanel.toolwindow.show.size": "false",
|
||||||
|
"last_opened_file_path": "/Users/lizhong/Desktop/workspace/ReptileFront/reptileFront_nuxt/assets/images",
|
||||||
|
"node.js.detected.package.eslint": "true",
|
||||||
|
"node.js.detected.package.tslint": "true",
|
||||||
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
|
"nodejs_package_manager_path": "yarn",
|
||||||
|
"settings.editor.selected.configurable": "reference.settings.ide.settings.file-colors",
|
||||||
|
"ts.external.directory.path": "/Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/external",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
|
}
|
||||||
|
}</component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="$PROJECT_DIR$/assets/images" />
|
||||||
|
<recent name="$PROJECT_DIR$/pages" />
|
||||||
|
<recent name="$PROJECT_DIR$/api" />
|
||||||
|
<recent name="$PROJECT_DIR$" />
|
||||||
|
<recent name="$PROJECT_DIR$/src/assets/images" />
|
||||||
|
</key>
|
||||||
|
<key name="MoveFile.RECENT_KEYS">
|
||||||
|
<recent name="$PROJECT_DIR$/pages" />
|
||||||
|
<recent name="$PROJECT_DIR$/pages/case" />
|
||||||
|
<recent name="$PROJECT_DIR$/composables" />
|
||||||
|
<recent name="$PROJECT_DIR$" />
|
||||||
|
<recent name="$PROJECT_DIR$/src/assets" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
|
<component name="RunManager" selected="npm.generate">
|
||||||
|
<configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
||||||
|
<package-json value="$PROJECT_DIR$/package.json" />
|
||||||
|
<command value="run" />
|
||||||
|
<scripts>
|
||||||
|
<script value="build" />
|
||||||
|
</scripts>
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
||||||
|
<package-json value="$PROJECT_DIR$/package.json" />
|
||||||
|
<command value="run" />
|
||||||
|
<scripts>
|
||||||
|
<script value="dev" />
|
||||||
|
</scripts>
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<configuration name="generate" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
||||||
|
<package-json value="$PROJECT_DIR$/package.json" />
|
||||||
|
<command value="run" />
|
||||||
|
<scripts>
|
||||||
|
<script value="generate" />
|
||||||
|
</scripts>
|
||||||
|
<node-interpreter value="project" />
|
||||||
|
<envs />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<recent_temporary>
|
||||||
|
<list>
|
||||||
|
<item itemvalue="npm.generate" />
|
||||||
|
<item itemvalue="npm.dev" />
|
||||||
|
<item itemvalue="npm.build" />
|
||||||
|
</list>
|
||||||
|
</recent_temporary>
|
||||||
|
</component>
|
||||||
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="dc5c5f4b-3a26-4616-b023-f4f048553ff8" name="Changes" comment="" />
|
||||||
|
<created>1678279948733</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1678279948733</updated>
|
||||||
|
<workItem from="1678279949799" duration="13481000" />
|
||||||
|
<workItem from="1678294815425" duration="48333000" />
|
||||||
|
<workItem from="1678438152030" duration="8000" />
|
||||||
|
<workItem from="1678438167690" duration="42000" />
|
||||||
|
<workItem from="1678438231436" duration="25025000" />
|
||||||
|
<workItem from="1678713468939" duration="2210000" />
|
||||||
|
<workItem from="1678803633686" duration="12386000" />
|
||||||
|
<workItem from="1679292964552" duration="641000" />
|
||||||
|
<workItem from="1679313612567" duration="917000" />
|
||||||
|
<workItem from="1679622933773" duration="4483000" />
|
||||||
|
<workItem from="1679887069532" duration="713000" />
|
||||||
|
<workItem from="1679913811172" duration="1597000" />
|
||||||
|
<workItem from="1680008447811" duration="223000" />
|
||||||
|
<workItem from="1680009330616" duration="7707000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="3" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,16 @@
|
|||||||
|
import {
|
||||||
|
defineNuxtRouteMiddleware,
|
||||||
|
navigateTo,
|
||||||
|
} from "#app";
|
||||||
|
|
||||||
|
// import useUserStore from "@/store/user.store";
|
||||||
|
|
||||||
|
export default defineNuxtRouteMiddleware((to, form) => {
|
||||||
|
const { getToken,setLoginVisible } = useUserInfo();
|
||||||
|
console.log(getToken, 'getToken')
|
||||||
|
if (!getToken) {
|
||||||
|
setLoginVisible(true)
|
||||||
|
}else {
|
||||||
|
setLoginVisible(false)
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in new issue