vue 使用 npm run dev命令后 自动打开浏览器为谷歌
写这篇文章纯属自己捣鼓了半天(嗯?)
首先打开index.js文件,将浏览器设置为自动打开
然后打开package.json文件加上 --open chrome
这是在网上查找,找到的方法,但我的都没用
于是
成功,哈哈哈哈
如果帮助了你点个赞吧!
如果怕遗忘了可以,点击右上角收藏,比网页收藏更靠谱,换了电脑也不会不见的。
return $result[$k]; if (3 == DEBUG) return TRUE; if (1 == $gid) return TRUE; // 管理员有所有权限 if (!isset($grouplist[$gid])) return TRUE; $group = $grouplist[$gid]; $result[$k] = empty($group[$access]) ? FALSE : TRUE; return $result[$k]; } // 从缓存中读取 forum_list 数据 function group_list_cache() { global $conf; if ('mysql' == $conf['cache']['type']) { $grouplist = group_get(); } else { $grouplist = cache_get('grouplist'); if (NULL === $grouplist || FALSE === $grouplist) { $grouplist = group_find(); cache_set('grouplist', $grouplist); } } return $grouplist; } // 更新 forumlist 缓存 function group_list_cache_delete() { global $conf; $r = 'mysql' == $conf['cache']['type'] ? group_delete_cache() : cache_delete('grouplist'); return $r; } //--------------------------kv + cache-------------------------- $g_grouplist = FALSE; function group_get() { global $g_grouplist; FALSE === $g_grouplist AND $g_grouplist = website_get('grouplist'); if (empty($g_grouplist)) { $g_grouplist = group_find(); $g_grouplist AND group_set($g_grouplist); } return $g_grouplist; } function group_set($val) { global $g_grouplist; $g_grouplist = $val; return website_set('grouplist', $g_grouplist); } function group_delete_cache() { website_set('grouplist', ''); return TRUE; } ?>
写这篇文章纯属自己捣鼓了半天(嗯?)
首先打开index.js文件,将浏览器设置为自动打开
然后打开package.json文件加上 --open chrome
这是在网上查找,找到的方法,但我的都没用
于是
成功,哈哈哈哈
如果帮助了你点个赞吧!
如果怕遗忘了可以,点击右上角收藏,比网页收藏更靠谱,换了电脑也不会不见的。
发布评论