<commit_before><template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: 'app',
    created() {
      this.$store.dispatch('checkLogin').then(
        rs => {
          if (!rs) {
            this.$router.push({name: 'index'})
          }
          else {
            console.log(this.$route.name === 'index');<commit_msg>注册界面也不需要登录即可进入<commit_after><template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: 'app',
    created() {
      this.$store.dispatch('checkLogin').then(
        rs => {
          if (!rs && this.$route.name !== 'reg') {
            this.$router.push({name: 'index'})
          }
          else {
{'fraction_non_alphanumeric': 0.1935483870967742, 'fraction_numerical': 0.0, 'mean_word_length': 2.0408163265306123, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6663118', 'n_tokens_mistral': 250, 'n_tokens_neox': 252, 'n_words': 41}